@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
|
-
|
|
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)
|