Skip to content

Commit 58d1bc3

Browse files
committed
Add not_equal comparator to analytics conditions
1 parent 210187a commit 58d1bc3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/components/QueryEditor.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,9 @@ interface ConditionsFormProps extends QueryProps {
5757
loadAttributes: (input: string) => Promise<Array<ComboboxOption<string>>>;
5858
}
5959

60-
const searchTypes = [
60+
const comparators = [
6161
'equals',
62+
'not_equal',
6263
'contains',
6364
'starts_with',
6465
'ends_with',
@@ -93,10 +94,10 @@ function ConditionForm({ datasource, queryAttrs, onQueryAttrsChange, loadAttribu
9394
</InlineField>
9495
<InlineField label="Comparator" style={{ marginLeft: '16px' }}>
9596
<Combobox
96-
id={`conditions-search-type-${index}`}
97+
id={`conditions-comparator-${index}`}
9798
width="auto"
9899
minWidth={12}
99-
options={toComboboxOptions(searchTypes)}
100+
options={toComboboxOptions(comparators)}
100101
value={condition?.comparator}
101102
onChange={(v) => {
102103
const conditions = [...(queryAttrs?.conditions || [])];

0 commit comments

Comments
 (0)