From 7163a726f57d8c25776abba8c7da56228b452fbf Mon Sep 17 00:00:00 2001 From: Pranav C Date: Thu, 4 Jan 2024 13:19:28 +0000 Subject: [PATCH] refactor: disable duplicate for system fields --- packages/nc-gui/components/smartsheet/header/Menu.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/nc-gui/components/smartsheet/header/Menu.vue b/packages/nc-gui/components/smartsheet/header/Menu.vue index e002327536..9ee42078f6 100644 --- a/packages/nc-gui/components/smartsheet/header/Menu.vue +++ b/packages/nc-gui/components/smartsheet/header/Menu.vue @@ -285,6 +285,13 @@ const isDeleteAllowed = computed(() => { } return true }) +const isDuplicateAllowed = computed(() => { + if (!column?.value) return false + if (column.value.system) { + return false + } + return true +})