Browse Source

fix(nc-gui): fix col = 0 case in getColVal (#4631)

pull/4637/head
Semjon Geist 2 years ago committed by GitHub
parent
commit
4ba0f5089e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      packages/nc-gui/utils/parsers/parserHelpers.ts

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