setIsComparatorPopoverOpen(true)}
+ />
+ }
+ isOpen={isComparatorPopoverOpen}
+ closePopover={() => setIsComparatorPopoverOpen(false)}
+ ownFocus
+ panelPaddingSize="s"
+ anchorPosition="downLeft"
+ >
+
+ {criterionComparatorValueTitle}
+
+
+ 0} error={errors.comparator}>
+
+ updateCriterion(idx, { comparator: e.target.value as Comparator })
+ }
+ options={compatibleComparatorOptions}
+ />
+
+
+
+ 0} error={errors.value}>
+ {fieldInfo?.type === 'number' ? (
+ {
+ const number = parseInt(e.target.value, 10);
+ updateCriterion(idx, { value: number ? number : undefined });
+ }}
+ />
+ ) : (
+ updateCriterion(idx, { value: e.target.value })}
+ />
+ )}
+
+
+
+
+
+