mirror of
https://github.com/Fechin/reference.git
synced 2026-11-22 05:51:48 +03:00
Fix async await syntax
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -1446,7 +1446,7 @@ const getSuggestions = async () => {
|
||||
const wordQuery = inputField.value;
|
||||
const endpoint = `${url}${queryParams}${wordQuery}`;
|
||||
try{
|
||||
const response = __~await~__ __~fetch(endpoint, {cache: 'no-cache'});
|
||||
const response = await fetch(endpoint, {cache: 'no-cache'});
|
||||
if(response.ok){
|
||||
const jsonResponse = await response.json()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user