Skip to content

Commit fe1bff2

Browse files
committed
fix: ensure page load state is updated correctly in ListView
1 parent 0a0583f commit fe1bff2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

adminforth/spa/src/views/ListView.vue

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ async function init() {
331331
await coreStore.fetchResourceFull({
332332
resourceId: route.params.resourceId
333333
});
334-
334+
isPageLoaded.value = true;
335335
// !!! clear filters should be in same tick with sort assignment so that watch can catch it as one change
336336
337337
// try to init filters from query params
@@ -446,8 +446,4 @@ watch([sort], async () => {
446446
setQuery({ sort: SortQuerySerializer.serialize(sort.value) });
447447
});
448448
449-
watch(() => coreStore.resource, () => {
450-
isPageLoaded.value = true;
451-
});
452-
453449
</script>

0 commit comments

Comments
 (0)