diff --git a/packages/nc-gui/components/virtual-cell/Links.vue b/packages/nc-gui/components/virtual-cell/Links.vue index 7b5007f683..580fba8dba 100644 --- a/packages/nc-gui/components/virtual-cell/Links.vue +++ b/packages/nc-gui/components/virtual-cell/Links.vue @@ -68,12 +68,7 @@ const toatlRecordsLinked = computed(() => { if (isForm?.value) { return state.value?.[colTitle.value]?.length } - const parsedValue = +value?.value || 0 - if (!parsedValue) { - return 0 - } else { - return parsedValue - } + return +value?.value || 0 }) const onAttachRecord = () => {