Browse Source

fix: confirm data exist in updateRow response and modify

pull/7304/head
Pranav C 11 months ago
parent
commit
3f0811b9a0
  1. 5
      packages/nc-gui/composables/useData.ts

5
packages/nc-gui/composables/useData.ts

@ -236,7 +236,8 @@ export function useData(args: {
toUpdate.row, toUpdate.row,
metaValue!.columns!.reduce<Record<string, any>>((acc: Record<string, any>, col: ColumnType) => { metaValue!.columns!.reduce<Record<string, any>>((acc: Record<string, any>, col: ColumnType) => {
if ( if (
col.uidt === UITypes.Formula || col.title in updatedRowData &&
(col.uidt === UITypes.Formula ||
col.uidt === UITypes.QrCode || col.uidt === UITypes.QrCode ||
col.uidt === UITypes.Barcode || col.uidt === UITypes.Barcode ||
col.uidt === UITypes.Rollup || col.uidt === UITypes.Rollup ||
@ -245,7 +246,7 @@ export function useData(args: {
col.uidt === UITypes.LastModifiedTime || col.uidt === UITypes.LastModifiedTime ||
col.uidt === UITypes.Lookup || col.uidt === UITypes.Lookup ||
col.au || col.au ||
(col.cdf && / on update /i.test(col.cdf)) (col.cdf && / on update /i.test(col.cdf)))
) )
acc[col.title!] = updatedRowData[col.title!] acc[col.title!] = updatedRowData[col.title!]
return acc return acc

Loading…
Cancel
Save