@yogiswara/honcho-editor-ui 1.4.7 → 1.4.8

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.
@@ -646,7 +646,7 @@ export function useHonchoEditor(controller, initImageId, firebaseUid) {
646
646
  const pathGallery = extractPathFromGallery(galleryImageData);
647
647
  // load image to editor
648
648
  await loadImageEditorFromUrl(pathGallery);
649
- console.log("Image loaded to editor");
649
+ updateCanvasEditor();
650
650
  // adjustment setup
651
651
  if (adjustmentData) {
652
652
  const adjustmentState = mapColorAdjustmentToAdjustmentState(adjustmentData);
@@ -658,7 +658,7 @@ export function useHonchoEditor(controller, initImageId, firebaseUid) {
658
658
  }
659
659
  };
660
660
  init();
661
- }, [galleryImageData, editorRef.current]);
661
+ }, [galleryImageData, editorRef.current, updateCanvasEditor]);
662
662
  useEffect(() => {
663
663
  // Render photo if adjustmentState change;
664
664
  if (!editorRef.current || !isImageLoaded)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yogiswara/honcho-editor-ui",
3
- "version": "1.4.7",
3
+ "version": "1.4.8",
4
4
  "description": "A complete UI component library for the Honcho photo editor.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",