Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
share
fe-common-library
Commits
b4abef6e
Commit
b4abef6e
authored
4 years ago
by
oahehc
Browse files
Options
Download
Email Patches
Plain Diff
Fix: encode search keyword to prevent error on IE
parent
000eae60
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/components/AnueSearch/AnueSearch.js
src/components/AnueSearch/AnueSearch.js
+3
-1
No files found.
src/components/AnueSearch/AnueSearch.js
View file @
b4abef6e
...
...
@@ -174,7 +174,9 @@ export default class AnueSearch extends Component {
handleFetch
=
debounce
(
async
()
=>
{
const
{
searchString
}
=
this
.
state
;
const
rawResult
=
await
this
.
request
.
get
(
`
${
this
.
anueUrlSingleton
.
anueSearchAllApiUrl
}${
searchString
}
`
);
const
rawResult
=
await
this
.
request
.
get
(
`
${
this
.
anueUrlSingleton
.
anueSearchAllApiUrl
}${
encodeURIComponent
(
searchString
)}
`
);
const
result
=
this
.
dataHelpers
.
searchTradesResponseHelper
(
rawResult
);
if
(
result
&&
(
result
.
quoteFunds
||
result
.
news
||
result
.
oldDrivers
))
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment