Browse Source

fix(nc-gui): type

pull/5106/head
Wing-Kam Wong 2 years ago
parent
commit
942239d7e5
  1. 2
      packages/nc-gui/components/smartsheet/toolbar/FilterInput.vue

2
packages/nc-gui/components/smartsheet/toolbar/FilterInput.vue

@ -115,7 +115,7 @@ const booleanOptions = [
const componentMap: Partial<Record<FilterType, any>> = $computed(() => { const componentMap: Partial<Record<FilterType, any>> = $computed(() => {
return { return {
// use MultiSelect for SingleSelect columns for anyof / nanyof filters // use MultiSelect for SingleSelect columns for anyof / nanyof filters
isSingleSelect: ['anyof', 'nanyof'].includes(props.filter.comparison_op) ? MultiSelect : SingleSelect, isSingleSelect: ['anyof', 'nanyof'].includes(props.filter.comparison_op!) ? MultiSelect : SingleSelect,
isMultiSelect: MultiSelect, isMultiSelect: MultiSelect,
isDate: DatePicker, isDate: DatePicker,
isYear: YearPicker, isYear: YearPicker,

Loading…
Cancel
Save