From 7e19c95cb29e489b336c7ac4bf98ceb843204fcd Mon Sep 17 00:00:00 2001 From: sreehari jayaraj Date: Fri, 6 Oct 2023 12:05:07 +0530 Subject: [PATCH] refactor --- packages/nc-gui/components/virtual-cell/Links.vue | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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 = () => {