[Fix] Handle deprecated viewFilterOperand - follow-up (#14841)
This commit is contained in:
@@ -2,8 +2,8 @@ export enum ViewFilterOperandDeprecated {
|
||||
Is = 'is',
|
||||
IsNotNull = 'isNotNull',
|
||||
IsNot = 'isNot',
|
||||
LessThanOrEqual = 'lessThanOrEqual',
|
||||
GreaterThanOrEqual = 'greaterThanOrEqual',
|
||||
LessThanOrEqual = 'lessThan',
|
||||
GreaterThanOrEqual = 'greaterThan',
|
||||
IsBefore = 'isBefore',
|
||||
IsAfter = 'isAfter',
|
||||
Contains = 'contains',
|
||||
|
||||
-16
@@ -1,22 +1,6 @@
|
||||
import { ViewFilterOperand, ViewFilterOperandDeprecated } from '@/types';
|
||||
|
||||
const operandMapping: Record<string, ViewFilterOperand> = {
|
||||
Is: ViewFilterOperand.IS,
|
||||
IsNotNull: ViewFilterOperand.IS_NOT_NULL,
|
||||
IsNot: ViewFilterOperand.IS_NOT,
|
||||
LessThanOrEqual: ViewFilterOperand.LESS_THAN_OR_EQUAL,
|
||||
GreaterThanOrEqual: ViewFilterOperand.GREATER_THAN_OR_EQUAL,
|
||||
IsBefore: ViewFilterOperand.IS_BEFORE,
|
||||
IsAfter: ViewFilterOperand.IS_AFTER,
|
||||
Contains: ViewFilterOperand.CONTAINS,
|
||||
DoesNotContain: ViewFilterOperand.DOES_NOT_CONTAIN,
|
||||
IsEmpty: ViewFilterOperand.IS_EMPTY,
|
||||
IsNotEmpty: ViewFilterOperand.IS_NOT_EMPTY,
|
||||
IsRelative: ViewFilterOperand.IS_RELATIVE,
|
||||
IsInPast: ViewFilterOperand.IS_IN_PAST,
|
||||
IsInFuture: ViewFilterOperand.IS_IN_FUTURE,
|
||||
IsToday: ViewFilterOperand.IS_TODAY,
|
||||
VectorSearch: ViewFilterOperand.VECTOR_SEARCH,
|
||||
[ViewFilterOperandDeprecated.Is]: ViewFilterOperand.IS,
|
||||
[ViewFilterOperandDeprecated.IsNotNull]: ViewFilterOperand.IS_NOT_NULL,
|
||||
[ViewFilterOperandDeprecated.IsNot]: ViewFilterOperand.IS_NOT,
|
||||
|
||||
Reference in New Issue
Block a user