@yogiswara/honcho-editor-ui 1.4.4 → 1.4.6
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.
|
@@ -298,13 +298,14 @@ export function useHonchoEditor(controller, initImageId, firebaseUid) {
|
|
|
298
298
|
const file = new File([blob], filename, { type: blob.type });
|
|
299
299
|
await editorRef.current.loadImageFromFile(file);
|
|
300
300
|
setIsImageLoaded(true);
|
|
301
|
+
updateCanvasEditor();
|
|
301
302
|
}
|
|
302
303
|
catch (error) {
|
|
303
304
|
console.error(error);
|
|
304
305
|
setEditorStatus("Error: Could not load image from URL.");
|
|
305
306
|
setIsImageLoaded(false);
|
|
306
307
|
}
|
|
307
|
-
}, [editorRef.current]);
|
|
308
|
+
}, [editorRef.current, updateCanvasEditor]);
|
|
308
309
|
const handleScriptReady = useCallback(async () => {
|
|
309
310
|
console.log("[Editor] Script tag is ready."); // Log entry
|
|
310
311
|
if (typeof window.Module === 'function' && !editorRef.current) {
|