Skip to content

Commit e5644b4

Browse files
authored
Reset selection of workflows list on namespace/query/perPage/refresh (#2726)
1 parent 39f512b commit e5644b4

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

src/lib/pages/workflows-with-new-search.svelte

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
import { searchAttributes } from '$lib/stores/search-attributes';
5151
import {
5252
refresh,
53-
updating,
5453
workflowCount,
5554
workflowsQuery,
5655
workflowsSearchParams,
@@ -62,6 +61,7 @@
6261
$: query = $page.url.searchParams.get('query');
6362
$: query, ($workflowsQuery = query);
6463
$: namespace = $page.params.namespace;
64+
$: perPage = $page.url.searchParams.get('per-page');
6565
6666
// For returning to page from 'Back to Workflows' with previous search
6767
$: searchParams = $page.url.searchParams.toString();
@@ -155,11 +155,7 @@
155155
handleSelectPage,
156156
});
157157
158-
$: {
159-
if ($updating) {
160-
resetSelection();
161-
}
162-
}
158+
$: namespace, query, perPage, $refresh, resetSelection();
163159
164160
let customizationDrawerOpen = false;
165161

0 commit comments

Comments
 (0)