Verify undefined operatorId (#16923)

This commit is contained in:
Geido 2021-09-30 18:53:48 +03:00 committed by GitHub
parent c8db435730
commit 7f330c9692
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ export const useSimpleTabFilterProps = (props: Props) => {
subject,
clause,
operator:
operator && isOperatorRelevant(operatorId, subject)
operator && operatorId && isOperatorRelevant(operatorId, subject)
? OPERATOR_ENUM_TO_OPERATOR_TYPE[operatorId].operation
: null,
expressionType: EXPRESSION_TYPES.SIMPLE,