From dcf089650559495d1d3a4b7c0c8f15a950d7025c Mon Sep 17 00:00:00 2001 From: Anbarasu Date: Wed, 19 Jun 2024 20:54:16 +0530 Subject: [PATCH] fix: comments of prev row loading in ui (#8799) --- packages/nc-gui/composables/useExpandedFormStore.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nc-gui/composables/useExpandedFormStore.ts b/packages/nc-gui/composables/useExpandedFormStore.ts index d2d2b02cb5..13843df6e4 100644 --- a/packages/nc-gui/composables/useExpandedFormStore.ts +++ b/packages/nc-gui/composables/useExpandedFormStore.ts @@ -104,7 +104,7 @@ const [useProvideExpandedFormStore, useExpandedFormStore] = useInjectionState((m const loadComments = async (_rowId?: string) => { if (!isUIAllowed('commentList') || (!row.value && !_rowId)) return - const rowId = extractPkFromRow(row.value.row, meta.value.columns as ColumnType[]) ?? _rowId + const rowId = _rowId ?? extractPkFromRow(row.value.row, meta.value.columns as ColumnType[]) if (!rowId) return @@ -176,7 +176,7 @@ const [useProvideExpandedFormStore, useExpandedFormStore] = useInjectionState((m const loadAudits = async (_rowId?: string) => { if (!isUIAllowed('auditList') || (!row.value && !_rowId)) return - const rowId = extractPkFromRow(row.value.row, meta.value.columns as ColumnType[]) ?? _rowId + const rowId = _rowId ?? extractPkFromRow(row.value.row, meta.value.columns as ColumnType[]) if (!rowId) return