implemented updating search result on every query (#92)

This commit is contained in:
Yunus Güngör
2021-02-06 16:57:27 +03:00
committed by GitHub
parent 67f8670015
commit 4fd17085d7

View File

@@ -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;
}