Skip to content

A self-hosted media server and file management system

fix: folder sidebar shows skeleton when loading folders in the same library

aminnausin1bfa8a8441c3
diff --git a/resources/js/views/VideoView.vue b/resources/js/views/VideoView.vue
index 181ab26f..e81f0471 100755
--- a/resources/js/views/VideoView.vue
+++ b/resources/js/views/VideoView.vue
@@ -46,13 +46,12 @@ async function reload() {
const URL_CATEGORY = toSingleParam(route.params.category);
const URL_FOLDER = toSingleParam(route.params.folder);
- isLoadingContent.value = true;
-
await nextTick();
document.body.scrollTo({ top: 0, behavior: 'instant' });
if (stateDirectory.value?.name && stateDirectory.value.name === URL_CATEGORY && URL_FOLDER) {
await getFolder(URL_FOLDER);
} else {
+ isLoadingContent.value = true;
await getCategory(URL_CATEGORY, URL_FOLDER);
}
} catch (error) {