Await fetchAllFiles() in FilesPage onMounted to fix premature loading reset
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -930,9 +930,9 @@ const handleWindowClick = (e) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Mounted
|
// Mounted
|
||||||
onMounted(() => {
|
onMounted(async () => {
|
||||||
isLoading.value = true;
|
isLoading.value = true;
|
||||||
store.fetchAllFiles();
|
await store.fetchAllFiles();
|
||||||
window.addEventListener("click", handleWindowClick);
|
window.addEventListener("click", handleWindowClick);
|
||||||
// Add the .scrollbar class to the DataTable tbody
|
// Add the .scrollbar class to the DataTable tbody
|
||||||
const tbodyElement = document.querySelector(".p-datatable-tbody");
|
const tbodyElement = document.querySelector(".p-datatable-tbody");
|
||||||
|
|||||||
Reference in New Issue
Block a user