Skip to content

A self-hosted media server and file management system

fix: content store resets state on folder info page

aminnausind352be0eeba9
diff --git a/resources/js/stores/ContentStore.ts b/resources/js/stores/ContentStore.ts
index 8994f61c..7d0dbe2e 100644
--- a/resources/js/stores/ContentStore.ts
+++ b/resources/js/stores/ContentStore.ts
@@ -375,7 +375,7 @@ export const useContentStore = defineStore('Content', () => {
* Watches the current route and clears app state when leaving the video player page.
*/
watch(route, (to) => {
- if (to.name !== 'home') {
+ if (to.name !== 'home' && route.name !== 'folder') {
clearState();
}
});