From 647fa9ecf7c98dc9be5291de261649fe93f9e960 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Wed, 10 Jan 2024 09:05:29 +0000 Subject: [PATCH] fix: convert to string before applying trim --- packages/nc-gui/components/cell/SingleSelect.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nc-gui/components/cell/SingleSelect.vue b/packages/nc-gui/components/cell/SingleSelect.vue index 8ba832c267..2326988f82 100644 --- a/packages/nc-gui/components/cell/SingleSelect.vue +++ b/packages/nc-gui/components/cell/SingleSelect.vue @@ -258,7 +258,7 @@ const handleClose = (e: MouseEvent) => { useEventListener(document, 'click', handleClose, true) const selectedOpt = computed(() => { - return options.value.find((o) => o.value === vModel.value || o.value === vModel.value?.trim()) + return options.value.find((o) => o.value === vModel.value || o.value === vModel.value?.toString()?.trim()) }) const onFocus = () => {