Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

fix: set interval even if no current file

httpjamesmc2c1ac13bd64
diff --git a/apps/cast/src/pages/slideshow.tsx b/apps/cast/src/pages/slideshow.tsx
index e015fa79a4..6c30cf8184 100644
--- a/apps/cast/src/pages/slideshow.tsx
+++ b/apps/cast/src/pages/slideshow.tsx
@@ -50,7 +50,7 @@ export default function Slideshow() {
}, []);
useEffect(() => {
- if (collectionFiles.length < 1 || !currentFile) return;
+ if (collectionFiles.length < 1) return;
// create interval to change slide
const interval = setInterval(() => {
// set the currentFile to the next file in the collection for the slideshow