From 477bee53be2d4e4555e25951a381f99b86147d30 Mon Sep 17 00:00:00 2001 From: mertmit Date: Thu, 16 Nov 2023 16:56:32 +0000 Subject: [PATCH] fix: use destructuring instead of delete --- .../nc-gui/components/smartsheet/column/SelectOptions.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nc-gui/components/smartsheet/column/SelectOptions.vue b/packages/nc-gui/components/smartsheet/column/SelectOptions.vue index 53ad9bf92a..ade13be2f2 100644 --- a/packages/nc-gui/components/smartsheet/column/SelectOptions.vue +++ b/packages/nc-gui/components/smartsheet/column/SelectOptions.vue @@ -184,8 +184,8 @@ const syncOptions = () => { return renderA - renderB }) .map((op) => { - delete op.index - return op + const { index: _i, status: _s, ...rest } = op + return rest }) }