fix(dashboard): revert to page 1 when searching list

This commit is contained in:
Jake/Rads 2022-06-24 07:59:51 +02:00
parent 24a0e54f2c
commit f14fee9ae1
2 changed files with 2 additions and 2 deletions

View File

@ -123,7 +123,7 @@
</script>
<ListControl {itemType} {isPublic} {memberList} {groups} {groupList} {list} bind:finalList={processedList} bind:searchValue bind:searchBy bind:itemsPerPageValue />
<ListControl {itemType} {isPublic} {memberList} {groups} {groupList} {list} bind:finalList={processedList} bind:searchValue bind:searchBy bind:itemsPerPageValue bind:currentPage />
{#if listLoading && !err}
<div class="mx-auto text-center">

View File

@ -21,7 +21,7 @@ let privacyFilter = "all";
let groupSearchMode = "include";
let selectedGroups = [];
export let currentPage = 1;
export let currentPage: number;
export let isPublic: boolean;
$: {searchValue; privacyFilter; currentPage = 1};