Browse Source

fix: comments of prev row loading in ui (#8799)

pull/8802/head
Anbarasu 2 weeks ago committed by GitHub
parent
commit
dcf0896505
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      packages/nc-gui/composables/useExpandedFormStore.ts

4
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

Loading…
Cancel
Save