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(() => { const selectedOpts = computed(() => {
return vModel.value.reduce<SelectOptionType[]>((selectedOptions, option) => { return vModel.value.reduce<SelectOptionType[]>((selectedOptions, option) => {
const fnd = options.value.find((o) => o.value === option) const selectedOption = options.value.find((o) => o.value === option)
if (fnd) { if (selectedOption) {
selectedOptions.push(fnd) selectedOptions.push(selectedOption)
} }
return selectedOptions return selectedOptions
}, []) }, [])

Loading…
Cancel
Save