@yogiswara/honcho-editor-ui 1.3.4 → 1.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -292,6 +292,7 @@ export function useHonchoEditor(controller, initImageId, firebaseUid) {
|
|
|
292
292
|
}
|
|
293
293
|
}, [controller, loadImageFromUrl]);
|
|
294
294
|
const handlePrev = useCallback(async (firebaseUid) => {
|
|
295
|
+
console.log("[DEBUG] handlePrev function was called.");
|
|
295
296
|
// Find the current image index
|
|
296
297
|
const currentIndex = imageList.findIndex(img => img.id === currentImageId);
|
|
297
298
|
// If not the first image, go to previous
|
|
@@ -303,6 +304,7 @@ export function useHonchoEditor(controller, initImageId, firebaseUid) {
|
|
|
303
304
|
}
|
|
304
305
|
}, [imageList, currentImageId]);
|
|
305
306
|
const handleNext = useCallback(async (firebaseUid) => {
|
|
307
|
+
console.log("[DEBUG] handleNext function was called.");
|
|
306
308
|
const currentIndex = imageList.findIndex(img => img.id === currentImageId);
|
|
307
309
|
// Condition 1: We are at the last image of the currently loaded list.
|
|
308
310
|
if (currentIndex === imageList.length - 1) {
|