Browse Source

fix: filtering options for select columns

Signed-off-by: mertmit <mertmit99@gmail.com>
pull/4901/head
mertmit 2 years ago committed by Raju Udava
parent
commit
ade937a64b
  1. 16
      packages/nc-gui/utils/filterUtils.ts

16
packages/nc-gui/utils/filterUtils.ts

@ -41,13 +41,13 @@ export const comparisonOpList: {
text: 'is empty', text: 'is empty',
value: 'empty', value: 'empty',
ignoreVal: true, ignoreVal: true,
excludedTypes: [UITypes.Checkbox, UITypes.Rating], excludedTypes: [UITypes.Checkbox, UITypes.Rating, UITypes.MultiSelect, UITypes.SingleSelect],
}, },
{ {
text: 'is not empty', text: 'is not empty',
value: 'notempty', value: 'notempty',
ignoreVal: true, ignoreVal: true,
excludedTypes: [UITypes.Checkbox, UITypes.Rating], excludedTypes: [UITypes.Checkbox, UITypes.Rating, UITypes.MultiSelect, UITypes.SingleSelect],
}, },
{ {
text: 'is null', text: 'is null',
@ -67,7 +67,7 @@ export const comparisonOpList: {
{ {
text: 'contains any of', text: 'contains any of',
value: 'anyof', value: 'anyof',
includedTypes: [UITypes.MultiSelect], includedTypes: [UITypes.MultiSelect, UITypes.SingleSelect],
}, },
{ {
text: 'does not contain all of', text: 'does not contain all of',
@ -77,26 +77,26 @@ export const comparisonOpList: {
{ {
text: 'does not contain any of', text: 'does not contain any of',
value: 'nanyof', value: 'nanyof',
includedTypes: [UITypes.MultiSelect], includedTypes: [UITypes.MultiSelect, UITypes.SingleSelect],
}, },
{ {
text: '>', text: '>',
value: 'gt', value: 'gt',
excludedTypes: [UITypes.Checkbox], excludedTypes: [UITypes.Checkbox, UITypes.MultiSelect, UITypes.SingleSelect],
}, },
{ {
text: '<', text: '<',
value: 'lt', value: 'lt',
excludedTypes: [UITypes.Checkbox], excludedTypes: [UITypes.Checkbox, UITypes.MultiSelect, UITypes.SingleSelect],
}, },
{ {
text: '>=', text: '>=',
value: 'gte', value: 'gte',
excludedTypes: [UITypes.Checkbox], excludedTypes: [UITypes.Checkbox, UITypes.MultiSelect, UITypes.SingleSelect],
}, },
{ {
text: '<=', text: '<=',
value: 'lte', value: 'lte',
excludedTypes: [UITypes.Checkbox], excludedTypes: [UITypes.Checkbox, UITypes.MultiSelect, UITypes.SingleSelect],
}, },
] ]

Loading…
Cancel
Save