Browse Source

feat(nc-gui): disable null and empty for UITypes.Time

pull/5306/head
Wing-Kam Wong 2 years ago
parent
commit
08874a32ee
  1. 6
      packages/nc-gui/utils/filterUtils.ts

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

@ -1,4 +1,4 @@
import { UITypes, isNumericCol, numericUITypes } from 'nocodb-sdk' import { isNumericCol, numericUITypes, UITypes } from 'nocodb-sdk'
const getEqText = (fieldUiType: UITypes) => { const getEqText = (fieldUiType: UITypes) => {
if (isNumericCol(fieldUiType) || UITypes.Time) { if (isNumericCol(fieldUiType) || UITypes.Time) {
@ -145,6 +145,7 @@ export const comparisonOpList = (
UITypes.Lookup, UITypes.Lookup,
UITypes.Date, UITypes.Date,
UITypes.DateTime, UITypes.DateTime,
UITypes.Time,
...numericUITypes, ...numericUITypes,
], ],
}, },
@ -162,6 +163,7 @@ export const comparisonOpList = (
UITypes.Lookup, UITypes.Lookup,
UITypes.Date, UITypes.Date,
UITypes.DateTime, UITypes.DateTime,
UITypes.Time,
...numericUITypes, ...numericUITypes,
], ],
}, },
@ -180,6 +182,7 @@ export const comparisonOpList = (
UITypes.Lookup, UITypes.Lookup,
UITypes.Date, UITypes.Date,
UITypes.DateTime, UITypes.DateTime,
UITypes.Time,
], ],
}, },
{ {
@ -197,6 +200,7 @@ export const comparisonOpList = (
UITypes.Lookup, UITypes.Lookup,
UITypes.Date, UITypes.Date,
UITypes.DateTime, UITypes.DateTime,
UITypes.Time,
], ],
}, },
{ {

Loading…
Cancel
Save