Fix async await syntax

This commit is contained in:
ceo authored and GitHub committed 2020-12-29 12:38:36 -03:00
1 parent b3e08c6c4b
commit fcd34d3f5c
1 file changed
+1 -1
+1 -1
View File
@@ -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()
}