Browse Source

fix(gui): pass row data for extracting id

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/4046/head
Pranav C 2 years ago
parent
commit
b783234181
  1. 4
      packages/nc-gui/composables/useSmartsheetRowStore.ts

4
packages/nc-gui/composables/useSmartsheetRowStore.ts

@ -135,7 +135,7 @@ const [useProvideSmartsheetRowStore, useSmartsheetRowStore] = useInjectionState(
NOCO,
project.value.title as string,
meta.value?.title as string,
extractPkFromRow(currentRow.value, meta.value?.columns as ColumnType[]),
extractPkFromRow(currentRow.value.row, meta.value?.columns as ColumnType[]),
'bt' as any,
column.title as string,
extractPkFromRow(currentRow.value.row[column.title!], relatedTableMeta?.columns as ColumnType[]),
@ -146,7 +146,7 @@ const [useProvideSmartsheetRowStore, useSmartsheetRowStore] = useInjectionState(
NOCO,
project.value.title as string,
meta.value?.title as string,
extractPkFromRow(currentRow.value, meta.value?.columns as ColumnType[]),
extractPkFromRow(currentRow.value.row, meta.value?.columns as ColumnType[]),
(<LinkToAnotherRecordType>column?.colOptions).type as 'hm' | 'mm',
column.title as string,
extractPkFromRow(link, relatedTableMeta?.columns as ColumnType[]),

Loading…
Cancel
Save