Browse Source

Fix getColVal in parserHelpers.ts -> col index can be 0 -> so check only that its not undefined

pull/4631/head
Semjon Geist 2 years ago
parent
commit
9a47d08ee1
  1. 6338
      package-lock.json
  2. 1
      packages/nc-gui/components/dlg/QuickImport.vue
  3. 2
      packages/nc-gui/utils/parsers/parserHelpers.ts

6338
package-lock.json generated

File diff suppressed because it is too large Load Diff

1
packages/nc-gui/components/dlg/QuickImport.vue

@ -145,7 +145,6 @@ let templateGenerator: CSVTemplateAdapter | JSONTemplateAdapter | ExcelTemplateA
async function handlePreImport() {
preImportLoading.value = true
isParsingData.value = true
if (activeKey.value === 'uploadTab') {
if (isImportTypeCsv.value) {
await parseAndExtractData(importState.fileList as streamImportFileList)

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

@ -21,7 +21,7 @@ const booleanOptions = [
const aggBooleanOptions: any = booleanOptions.reduce((obj, o) => ({ ...obj, ...o }), {})
const getColVal = (row: any, col?: number) => {
return row && col ? row[col] : row
return row && col !== undefined ? row[col] : row
}
export const isCheckboxType: any = (values: [], col?: number) => {

Loading…
Cancel
Save