Skip to content

Commit 4f5eb29

Browse files
committed
add non-equals for filters; do not prepopulate transforms
1 parent 4db788c commit 4f5eb29

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/components/containers/TransformAccordion.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,11 @@ class TransformAccordion extends Component {
9797
const key = `transforms[${transformIndex}]`;
9898

9999
const payload = {type};
100-
const firstDataSource = dataSourceOptions[0].value;
101100
if (type === 'filter') {
102-
payload.targetsrc = firstDataSource;
101+
payload.targetsrc = null;
103102
} else {
104-
payload.groupssrc = firstDataSource;
105-
payload.groups = dataSources[firstDataSource];
103+
payload.groupssrc = null;
104+
payload.groups = null;
106105
}
107106

108107
updateContainer({[key]: payload});

src/components/fields/FilterOperation.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ const operators = [
3030

3131
const operations = {
3232
inequality: [
33+
{value: '!=', label: 'Target ≠ Reference'},
3334
{value: '<', label: 'Target < Reference'},
3435
{value: '<=', label: 'Target ≤ Reference'},
3536
{value: '=', label: 'Target = Reference'},

0 commit comments

Comments
 (0)