Browse Source

fix: logical operators

pull/8371/head
mertmit 7 months ago
parent
commit
28380aa0ea
  1. 2
      packages/nc-gui/utils/dataUtils.ts

2
packages/nc-gui/utils/dataUtils.ts

@ -8,7 +8,7 @@ export const extractPkFromRow = (row: Record<string, any>, columns: ColumnType[]
const pkColumns = columns.filter((c) => c.pk) const pkColumns = columns.filter((c) => c.pk)
if (!pkColumns.some((c) => row?.[c.title as string])) return null if (!pkColumns.some((c) => row?.[c.title as string] !== null && row?.[c.title as string] !== undefined)) return null
return pkColumns.map((c) => row?.[c.title as string]).join('___') return pkColumns.map((c) => row?.[c.title as string]).join('___')
} }

Loading…
Cancel
Save