From 08874a32eece7f902803762769eebc2851df0a8d Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Wed, 15 Mar 2023 18:05:48 +0800 Subject: [PATCH] feat(nc-gui): disable null and empty for UITypes.Time --- packages/nc-gui/utils/filterUtils.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/nc-gui/utils/filterUtils.ts b/packages/nc-gui/utils/filterUtils.ts index 2a85142860..ce7e6b2162 100644 --- a/packages/nc-gui/utils/filterUtils.ts +++ b/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) => { if (isNumericCol(fieldUiType) || UITypes.Time) { @@ -145,6 +145,7 @@ export const comparisonOpList = ( UITypes.Lookup, UITypes.Date, UITypes.DateTime, + UITypes.Time, ...numericUITypes, ], }, @@ -162,6 +163,7 @@ export const comparisonOpList = ( UITypes.Lookup, UITypes.Date, UITypes.DateTime, + UITypes.Time, ...numericUITypes, ], }, @@ -180,6 +182,7 @@ export const comparisonOpList = ( UITypes.Lookup, UITypes.Date, UITypes.DateTime, + UITypes.Time, ], }, { @@ -197,6 +200,7 @@ export const comparisonOpList = ( UITypes.Lookup, UITypes.Date, UITypes.DateTime, + UITypes.Time, ], }, {