diff options
-rw-r--r-- | src/background/shared/completions/index.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/background/shared/completions/index.js b/src/background/shared/completions/index.js index d0d00ef..9ca13f7 100644 --- a/src/background/shared/completions/index.js +++ b/src/background/shared/completions/index.js @@ -112,7 +112,8 @@ const getSetCompletions = (command, keywords) => { url: 'Set ' + properties.docs[key], } ]; - }).flat(); + }); + items = items.reduce((acc, val) => acc.concat(val), []); if (items.length === 0) { return Promise.resolve([]); } |