mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-27 07:23:31 +00:00
Encode autocomplete search query
This commit is contained in:
parent
323ab43889
commit
7f8d084fa4
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ export const getSearchSuggestions = (value: string) => (dispatch: Dispatch, getS
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
fetch(`${CONNECTION_STRING}autocomplete?s=${searchValue}`)
|
fetch(`${CONNECTION_STRING}autocomplete?s=${encodeURIComponent(searchValue)}`)
|
||||||
.then(handleFetchResponse)
|
.then(handleFetchResponse)
|
||||||
.then(apiSuggestions => {
|
.then(apiSuggestions => {
|
||||||
dispatch({
|
dispatch({
|
||||||
|
|
Loading…
Add table
Reference in a new issue