From 4fd17085d716cc86eee6d7a8cb2452922f500b9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yunus=20G=C3=BCng=C3=B6r?= Date: Sat, 6 Feb 2021 16:57:27 +0300 Subject: [PATCH] implemented updating search result on every query (#92) --- src/components/dialogs/searchDialog/SearchDialog.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/dialogs/searchDialog/SearchDialog.vue b/src/components/dialogs/searchDialog/SearchDialog.vue index 329b546..eddc10b 100644 --- a/src/components/dialogs/searchDialog/SearchDialog.vue +++ b/src/components/dialogs/searchDialog/SearchDialog.vue @@ -190,8 +190,8 @@ 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)) if (isStopped) { - this.grid.searchItems = this.grid.searchItems.concat(response.results); this.loading = false; }