From e196756381cbd71e8c0cf63fcb0dcc02eff2287b Mon Sep 17 00:00:00 2001 From: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com> Date: Tue, 12 Mar 2024 06:44:56 +0000 Subject: [PATCH] fix(nc-gui): remove optional chaining from base color picker --- .../components/general/BaseColorPicker.vue | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/packages/nc-gui/components/general/BaseColorPicker.vue b/packages/nc-gui/components/general/BaseColorPicker.vue index 2cb36efcea..0f9381d702 100644 --- a/packages/nc-gui/components/general/BaseColorPicker.vue +++ b/packages/nc-gui/components/general/BaseColorPicker.vue @@ -53,7 +53,7 @@ const onClick = (e: Event) => { watch( isOpenHuePicker, () => { - if (!isOpenHuePicker.value && colorRef.value?.h !== hue) { + if (!isOpenHuePicker.value && colorRef.value.h !== hue) { if (hue !== 0 && !hue) { colorRef.value.h = defaultHueValue } else { @@ -81,7 +81,7 @@ watch( }" @click.stop="onClick" > -