Browse Source

Merge pull request #8391 from nocodb/nc-fix/2801-shared-form-bt

fix: belongs-to relation in shared form
pull/8400/head
Mert E 2 months ago committed by GitHub
parent
commit
b4e005eb43
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 8
      packages/nc-gui/components/virtual-cell/components/UnLinkedItems.vue

8
packages/nc-gui/components/virtual-cell/components/UnLinkedItems.vue

@ -174,14 +174,14 @@ const relation = computed(() => {
})
const totalItemsToShow = computed(() => {
if (relation.value === 'bt') {
return row.value.row[relatedTableMeta.value?.title] ? 1 : 0
}
if (isForm.value || isNew.value) {
return rowState.value?.[injectedColumn!.value?.title]?.length ?? 0
}
if (relation.value === 'bt') {
return row.value?.row[relatedTableMeta.value?.title] ? 1 : 0
}
return childrenListCount.value ?? 0
})

Loading…
Cancel
Save