summaryrefslogtreecommitdiff
path: root/ext/bg/js/search-query-parser.js
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2019-11-11 02:28:00 +0200
committersiikamiika <siikamiika@users.noreply.github.com>2019-11-23 17:50:46 +0200
commitf97877a2097c8b27b75099e489b93db255cb68be (patch)
tree3d92d4e2dc16a4bf06d3a044d207107491faeb48 /ext/bg/js/search-query-parser.js
parentb336ab3a9a0a2ac9a569ae217b506ceeeab6fda0 (diff)
promise improvements
Diffstat (limited to 'ext/bg/js/search-query-parser.js')
-rw-r--r--ext/bg/js/search-query-parser.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/bg/js/search-query-parser.js b/ext/bg/js/search-query-parser.js
index f8e53963..2aee45dd 100644
--- a/ext/bg/js/search-query-parser.js
+++ b/ext/bg/js/search-query-parser.js
@@ -97,8 +97,8 @@ class QueryParser {
}
}
- const contents = await Promise.all(Object.values(results).map(async result => {
- return await apiTemplateRender('query-parser.html', {
+ const contents = await Promise.all(Object.values(results).map(result => {
+ return apiTemplateRender('query-parser.html', {
terms: result.map((term) => {
return term.filter(part => part.text.trim()).map((part) => {
return {