Browse Source

fix(nc-gui): correct insert data starting row

pull/4135/head
Wing-Kam Wong 2 years ago
parent
commit
aa31a9320a
  1. 2
      packages/nc-gui/utils/parsers/CSVTemplateAdapter.ts

2
packages/nc-gui/utils/parsers/CSVTemplateAdapter.ts

@ -262,7 +262,7 @@ export default class CSVTemplateAdapter {
worker: true,
step(row) {
steppers += 1
if (row && steppers >= 2) {
if (row && steppers >= +that.config.firstRowAsHeaders + 1) {
const rowData: Record<string, any> = {}
for (let columnIdx = 0; columnIdx < that.headers[tableIdx].length; columnIdx++) {
const column = that.project.tables[tableIdx].columns[columnIdx]

Loading…
Cancel
Save