Skip to content

Commit e21c3bd

Browse files
authored
Merge pull request #167 from bcgsc/hotfix/DEVSU-1744-new-autocomplete-endpoint
Hotfix/v6.8.2
2 parents c8f2050 + db2f4e9 commit e21c3bd

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

app/views/ReportView/components/TherapeuticTargets/components/AutocompleteHandler/index.jsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ const AutocompleteHandler = (props) => {
5050
// Find all query strings that are 3 characters or longer.
5151
// Needed for KB API to process multiple words
5252
queryString = queryString.split(' ').filter(str => str.length >= minCharacters).join(' ');
53-
54-
const { result } = await api.post(`/graphkb/${type}`, { keyword: queryString }).request();
53+
const { result } = await api.get(`/graphkb/${type}?search=${queryString}`).request();
5554

5655
setOptions(result);
5756
setLoading(false);
@@ -109,7 +108,7 @@ AutocompleteHandler.propTypes = {
109108
AutocompleteHandler.defaultProps = {
110109
defaultValue: '',
111110
required: false,
112-
onChange: () => {},
111+
onChange: () => { },
113112
minCharacters: 3,
114113
};
115114

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"name": "ipr-client",
4-
"version": "6.8.1",
4+
"version": "6.8.2",
55
"keywords": [],
66
"license": "GPL-3.0",
77
"sideEffects": false,

0 commit comments

Comments
 (0)