diff --git a/src/components/segments/ConstraintForm.tsx b/src/components/segments/ConstraintForm.tsx index b43779c..6a35904 100644 --- a/src/components/segments/ConstraintForm.tsx +++ b/src/components/segments/ConstraintForm.tsx @@ -62,20 +62,14 @@ function ConstraintOperatorSelect(props: InputProps) { const [field] = useField(props); - // set default value for operator when type changes - useEffect(() => { - if (type === 'BOOLEAN_COMPARISON_TYPE') { - setFieldValue(props.name, 'true'); - return; - } - setFieldValue(props.name, 'eq'); - }, [type, props.name, setFieldValue]); - return (