diff --git a/src/views/Files/FilesPage.vue b/src/views/Files/FilesPage.vue index bbdabef..54d3743 100644 --- a/src/views/Files/FilesPage.vue +++ b/src/views/Files/FilesPage.vue @@ -930,9 +930,9 @@ const handleWindowClick = (e) => { }; // Mounted -onMounted(() => { +onMounted(async () => { isLoading.value = true; - store.fetchAllFiles(); + await store.fetchAllFiles(); window.addEventListener("click", handleWindowClick); // Add the .scrollbar class to the DataTable tbody const tbodyElement = document.querySelector(".p-datatable-tbody");