Browse Source

refactor(nc-gui): put blank filter ops to the end

pull/4969/head
Wing-Kam Wong 2 years ago
parent
commit
a2f6d503db
  1. 24
      packages/nc-gui/utils/filterUtils.ts

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

@ -133,18 +133,6 @@ export const comparisonOpList = (
UITypes.Lookup,
],
},
{
text: 'is blank',
value: 'blank',
ignoreVal: true,
excludedTypes: [UITypes.Checkbox],
},
{
text: 'is not blank',
value: 'notblank',
ignoreVal: true,
excludedTypes: [UITypes.Checkbox],
},
{
text: 'contains all of',
value: 'allof',
@ -185,4 +173,16 @@ export const comparisonOpList = (
value: 'lte',
includedTypes: [...numericUITypes],
},
{
text: 'is blank',
value: 'blank',
ignoreVal: true,
excludedTypes: [UITypes.Checkbox],
},
{
text: 'is not blank',
value: 'notblank',
ignoreVal: true,
excludedTypes: [UITypes.Checkbox],
},
]

Loading…
Cancel
Save