Browse Source

fix(gui-v2): empty select option

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/3082/head
mertmit 2 years ago
parent
commit
fbec61ebbf
  1. 2
      packages/nc-gui-v2/components/cell/MultiSelect.vue

2
packages/nc-gui-v2/components/cell/MultiSelect.vue

@ -38,7 +38,7 @@ const options = computed(() => {
}) })
const vModel = 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(',')), set: (val) => emit('update:modelValue', val.length === 0 ? null : val.join(',')),
}) })

Loading…
Cancel
Save