@yogiswara/honcho-editor-ui 1.3.6 → 1.3.7
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.
|
@@ -256,6 +256,7 @@ export function useHonchoEditor(controller, initImageId, firebaseUid) {
|
|
|
256
256
|
const loadImageFromUrl = useCallback(async (url) => {
|
|
257
257
|
try {
|
|
258
258
|
setEditorStatus("Downloading image...");
|
|
259
|
+
console.log(`[DEBUG] Attempting to fetch image from URL: ${url}`);
|
|
259
260
|
const response = await fetch(url);
|
|
260
261
|
if (!response.ok)
|
|
261
262
|
throw new Error(`Failed to fetch image from URL: ${url}`);
|
|
@@ -278,6 +279,7 @@ export function useHonchoEditor(controller, initImageId, firebaseUid) {
|
|
|
278
279
|
const imagePath = gallery?.raw_edited?.path
|
|
279
280
|
? gallery.raw_edited.path
|
|
280
281
|
: gallery?.download?.path;
|
|
282
|
+
console.log("[DEBUG] Extracted imagePath to load:", imagePath);
|
|
281
283
|
if (imagePath) {
|
|
282
284
|
await loadImageFromUrl(imagePath);
|
|
283
285
|
return gallery; // ✅ RETURN the gallery object on success
|