Skip to content

armgit / ente

Public Imported from GitHub
0

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

fix: run init when cast is available

httpjamesmcba71db55490
diff --git a/apps/cast/src/pages/slideshow.tsx b/apps/cast/src/pages/slideshow.tsx
index da111628a9..1084d0c4b3 100644
--- a/apps/cast/src/pages/slideshow.tsx
+++ b/apps/cast/src/pages/slideshow.tsx
@@ -88,8 +88,9 @@ export default function Slideshow() {
const router = useRouter();
useEffect(() => {
+ if (!cast) return;
init();
- }, []);
+ }, [cast]);
useEffect(() => {
if (collectionFiles.length < 1) return;