Skip to content

A self-hosted media server and file management system

fix: video view tries to find video twice on load if folder is empty

aminnausin2ddcafecebda
diff --git a/resources/js/views/VideoView.vue b/resources/js/views/VideoView.vue
index ede7b467..ad7886a4 100755
--- a/resources/js/views/VideoView.vue
+++ b/resources/js/views/VideoView.vue
@@ -54,7 +54,8 @@ async function reload() {
isLoadingContent.value = true;
await getCategory(URL_CATEGORY, URL_FOLDER);
}
- if (!stateVideo.value.id) playlistFind(queryVideoId.value);
+
+ if (!stateVideo.value.id && stateFolder.value.videos?.length) playlistFind(queryVideoId.value);
} catch (error) {
console.log(error);
}