Skip to content

Commit

Permalink
Merge pull request #4 from bcgsc/release/v4.1.2
Browse files Browse the repository at this point in the history
fix: Do not use array to build query with contains operator
  • Loading branch information
creisle authored Jan 21, 2021
2 parents 56129f1 + 25e349d commit 8d264b9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bcgsc-pori/graphkb-client",
"version": "4.1.1",
"version": "4.1.2",
"private": true,
"bugs": {
"email": "[email protected]"
Expand Down
12 changes: 9 additions & 3 deletions src/views/AdvancedSearchView/components/PropertyFilter/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,11 +268,17 @@ const PropertyFilter = ({
},
};
} else {
let value = subProp
? formContent[subProp]
: formContent[property];

if (operator === 'CONTAINS' && value.length === 1) {
// special case. CONTAINS is marked iterable for entry convenience for the user
[value] = value;
}
result.query = {
operator,
[property]: subProp
? formContent[subProp]
: formContent[property],
[property]: value,
};
}
onSubmit(result);
Expand Down

0 comments on commit 8d264b9

Please sign in to comment.