瀏覽代碼

[web][cast] Add slide logs (#1566)

## Description

## Tests
Neeraj Gupta 1 年之前
父節點
當前提交
262e8852de
共有 1 個文件被更改,包括 13 次插入0 次删除
  1. 13 0
      web/apps/cast/src/pages/slideshow.tsx

+ 13 - 0
web/apps/cast/src/pages/slideshow.tsx

@@ -103,13 +103,26 @@ export default function Slideshow() {
 
     const showNextSlide = async () => {
         try {
+            console.log("showNextSlide");
             const currentIndex = collectionFiles.findIndex(
                 (file) => file.id === currentFileId,
             );
 
+            console.log(
+                "showNextSlide-index",
+                currentIndex,
+                collectionFiles.length,
+            );
+
             const nextIndex = (currentIndex + 1) % collectionFiles.length;
             const nextNextIndex = (nextIndex + 1) % collectionFiles.length;
 
+            console.log(
+                "showNextSlide-nextIndex and nextNextIndex",
+                nextIndex,
+                nextNextIndex,
+            );
+
             const nextFile = collectionFiles[nextIndex];
             const nextNextFile = collectionFiles[nextNextIndex];