Browse Source

refactor: variable name

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/5918/head
mertmit 1 year ago
parent
commit
e84c11287b
  1. 6
      packages/nc-gui/components/cell/MultiSelect.vue

6
packages/nc-gui/components/cell/MultiSelect.vue

@ -317,9 +317,9 @@ useEventListener(document, 'click', handleClose, true)
const selectedOpts = computed(() => {
return vModel.value.reduce<SelectOptionType[]>((selectedOptions, option) => {
const fnd = options.value.find((o) => o.value === option)
if (fnd) {
selectedOptions.push(fnd)
const selectedOption = options.value.find((o) => o.value === option)
if (selectedOption) {
selectedOptions.push(selectedOption)
}
return selectedOptions
}, [])

Loading…
Cancel
Save