Skip to content

A self-hosted media server and file management system

fix: return in search loop instead of continue

aminnausin9062c2059cd7
diff --git a/resources/js/stores/ContentStore.ts b/resources/js/stores/ContentStore.ts
index cbadb1db..0f533ce4 100644
--- a/resources/js/stores/ContentStore.ts
+++ b/resources/js/stores/ContentStore.ts
@@ -359,8 +359,10 @@ export const useContentStore = defineStore('Content', () => {
}
for (const video of stateFolder.value.videos ?? []) {
- if (video.metadata?.id !== id) return;
- apply(video);
+ if (video.metadata?.id === id) {
+ apply(video);
+ return;
+ }
}
}