Explorar o código

fix editor issue (#1511)

fix editor issue
Abhinav Kumar hai 1 ano
pai
achega
0dc1d138aa

+ 3 - 2
apps/photos/src/components/PhotoViewer/ImageEditorOverlay/index.tsx

@@ -214,9 +214,10 @@ const ImageEditorOverlay = (props: IProps) => {
                     props.file
                     props.file
                 );
                 );
                 img.src = srcURLs.url as string;
                 img.src = srcURLs.url as string;
-                setFileURL(fileURL);
+                setFileURL(srcURLs.url as string);
+            } else {
+                img.src = fileURL;
             }
             }
-            img.src = fileURL;
 
 
             await new Promise((resolve, reject) => {
             await new Promise((resolve, reject) => {
                 img.onload = () => {
                 img.onload = () => {