From b8921515ec76aabe4ea1adde54a5d4f73fdb9dd0 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Fri, 16 Jun 2023 18:26:00 +0530 Subject: [PATCH] refactor: disable links column clear support Signed-off-by: Pranav C --- packages/nc-gui/components/smartsheet/Grid.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/nc-gui/components/smartsheet/Grid.vue b/packages/nc-gui/components/smartsheet/Grid.vue index de2a35c3b1..5c9ef71c63 100644 --- a/packages/nc-gui/components/smartsheet/Grid.vue +++ b/packages/nc-gui/components/smartsheet/Grid.vue @@ -493,6 +493,10 @@ const rowRefs = $ref() async function clearCell(ctx: { row: number; col: number } | null, skipUpdate = false) { if (!ctx || !hasEditPermission || (!isLinksOrLTAR(fields.value[ctx.col]) && isVirtualCol(fields.value[ctx.col]))) return + if (fields.value[ctx.col]?.uidt === UITypes.Links) { + return message.info('Links column clear is not supported yet') + } + const rowObj = data.value[ctx.row] const columnObj = fields.value[ctx.col]