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

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,