diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/background/usecases/completions.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/background/usecases/completions.js b/src/background/usecases/completions.js index 92a54c1..2bf5b3b 100644 --- a/src/background/usecases/completions.js +++ b/src/background/usecases/completions.js @@ -106,6 +106,9 @@ export default class CompletionsInteractor { url: tab.url, icon: tab.favIconUrl })); + if (items.length === 0) { + return Promise.resolve(Completions.empty()); + } return new Completions([new CompletionGroup('Buffers', items)]); } |