From fbec61ebbfda9db5dc40797d9760998594a3163f Mon Sep 17 00:00:00 2001 From: mertmit Date: Wed, 10 Aug 2022 19:02:57 +0300 Subject: [PATCH] fix(gui-v2): empty select option Signed-off-by: mertmit --- packages/nc-gui-v2/components/cell/MultiSelect.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nc-gui-v2/components/cell/MultiSelect.vue b/packages/nc-gui-v2/components/cell/MultiSelect.vue index b8d7f78dc2..512ba97d9d 100644 --- a/packages/nc-gui-v2/components/cell/MultiSelect.vue +++ b/packages/nc-gui-v2/components/cell/MultiSelect.vue @@ -38,7 +38,7 @@ const options = computed(() => { }) const vModel = computed({ - get: () => selectedIds.value.map((el) => options.value.find((op: SelectOptionType) => op.id === el).title), + get: () => selectedIds.value.map((el) => options.value.find((op: SelectOptionType) => op.id === el)?.title), set: (val) => emit('update:modelValue', val.length === 0 ? null : val.join(',')), })