Belphemur/vue-json-csv

Omits a column totally if it doesn't have a value on the first row

DrAhmetK opened this issue · 1 comments

My data may have some columns with empty values. The vue-json-csv omits the columns totally if there's an empty cell on the first row.

I've fixed the problem with a workaround:

I'm already passing the fields property with my csvFields array. I've passed this list to the columns property under advancedOptions:

              :fields="csvFields"
              :advanced-options="{columns:csvFields}"