mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fix: documents selection state not reset on navigation.
This commit is contained in:
+5
-1
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import { goto, invalidate } from '$app/navigation';
|
||||
import { afterNavigate, goto, invalidate } from '$app/navigation';
|
||||
import { base } from '$app/paths';
|
||||
import { page } from '$app/stores';
|
||||
import { Submit, trackError, trackEvent } from '$lib/actions/analytics';
|
||||
@@ -45,6 +45,10 @@
|
||||
displayNames = preferences.getDisplayNames();
|
||||
});
|
||||
|
||||
afterNavigate(() => {
|
||||
selectedDb = []
|
||||
});
|
||||
|
||||
function formatArray(array: unknown[]) {
|
||||
if (array.length === 0) return '[ ]';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user