aboutsummaryrefslogtreecommitdiff
path: root/src/background
diff options
context:
space:
mode:
Diffstat (limited to 'src/background')
-rw-r--r--src/background/usecases/completions.js3
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)]);
}