From b78323418161c75ccf7f3b2af156aa69215b7cdd Mon Sep 17 00:00:00 2001 From: Pranav C Date: Thu, 13 Oct 2022 13:33:45 +0530 Subject: [PATCH] fix(gui): pass row data for extracting id Signed-off-by: Pranav C --- packages/nc-gui/composables/useSmartsheetRowStore.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nc-gui/composables/useSmartsheetRowStore.ts b/packages/nc-gui/composables/useSmartsheetRowStore.ts index 7873389e26..2db97e94ed 100644 --- a/packages/nc-gui/composables/useSmartsheetRowStore.ts +++ b/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[]), (column?.colOptions).type as 'hm' | 'mm', column.title as string, extractPkFromRow(link, relatedTableMeta?.columns as ColumnType[]),