From 630af66b69f3b90f491e027c61d4ca39dcd9b406 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yunus=20G=C3=BCng=C3=B6r?= Date: Sat, 6 Feb 2021 22:38:57 +0800 Subject: [PATCH] Minor fix --- src/components/dialogs/searchDialog/SearchDialog.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/dialogs/searchDialog/SearchDialog.vue b/src/components/dialogs/searchDialog/SearchDialog.vue index eddc10b..a682050 100644 --- a/src/components/dialogs/searchDialog/SearchDialog.vue +++ b/src/components/dialogs/searchDialog/SearchDialog.vue @@ -190,7 +190,9 @@ export default class SearchDialog extends HasTask { const response = await api.getSearchResults(responseId); const isStopped = response.status === "Stopped"; - this.grid.searchItems.splice(-1, 0, ...response.results.slice(this.grid.searchItems.length)) + const items = this.grid.searchItems + items.splice(items.length, 0, ...response.results.slice(items.length)) + if (isStopped) { this.loading = false; }