Browse Source

Merge pull request #9718 from nocodb/nc-fix/gui-expanded-form-nex-prev

fix: Grid view expanded form next and prev button bug
pull/9717/head
Pranav C 1 month ago committed by GitHub
parent
commit
8dde62a2be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      packages/nc-gui/utils/dataUtils.ts

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

@ -31,7 +31,8 @@ export const extractPkFromRow = (row: Record<string, any>, columns: ColumnType[]
if (pkCols.length > 1) {
return pkCols.map((c: Required<ColumnType>) => row?.[c.title]?.toString?.().replaceAll('_', '\\_') ?? null).join('___')
} else if (pkCols.length) {
return row?.[pkCols[0].title] ?? null
const id = row?.[pkCols[0].title] ?? null
return id === null ? null : `${id}`
}
}

Loading…
Cancel
Save