Browse Source

Merge pull request #4915 from gitstart/NCDBOSS-14

fix: Decimal Auto Type Section on Excel Import
pull/4941/head
աɨռɢӄաօռɢ 2 years ago committed by GitHub
parent
commit
a42e17a969
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      packages/nc-gui/utils/parsers/ExcelTemplateAdapter.ts

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

@ -158,7 +158,7 @@ export default class ExcelTemplateAdapter extends TemplateGenerator {
} }
} else if (column.uidt === UITypes.Number) { } else if (column.uidt === UITypes.Number) {
if ( if (
rows.slice(1, this.config.maxRowsToParse).every((v: any) => { rows.slice(1, this.config.maxRowsToParse).some((v: any) => {
return v && v[col] && parseInt(v[col]) !== +v[col] return v && v[col] && parseInt(v[col]) !== +v[col]
}) })
) { ) {

Loading…
Cancel
Save