Skip to content

Commit

Permalink
fix: remove unsupported filter operators for event layers (DHIS2-7089) (
Browse files Browse the repository at this point in the history
#586)

* fix: remove unsupported filter operators
* chore: code clean
  • Loading branch information
turban authored Apr 16, 2020
1 parent aefe5d9 commit b29059c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/components/filter/FilterSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,16 +146,12 @@ export class FilterSelect extends Component {
{ id: 'NE', name: '!=' },
];
} else if (optionSet) {
operators = [
{ id: 'IN', name: i18n.t('one of') },
{ id: '!IN', name: i18n.t('not one of') },
];
operators = [{ id: 'IN', name: i18n.t('one of') }];
} else if (textValueTypes.indexOf(valueType) >= 0) {
operators = [
{ id: 'LIKE', name: i18n.t('contains') },
{ id: '!LIKE', name: i18n.t("doesn't contains") },
{ id: 'EQ', name: i18n.t('is') },
{ id: '!EQ', name: i18n.t('is not') },
{ id: 'NE', name: i18n.t('is not') },
];
}

Expand Down

0 comments on commit b29059c

Please sign in to comment.