Преглед изворни кода

fix editor issue (#1511)

fix editor issue
Abhinav Kumar пре 1 година
родитељ
комит
0dc1d138aa
1 измењених фајлова са 3 додато и 2 уклоњено
  1. 3 2
      apps/photos/src/components/PhotoViewer/ImageEditorOverlay/index.tsx

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

@@ -214,9 +214,10 @@ const ImageEditorOverlay = (props: IProps) => {
                     props.file
                 );
                 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) => {
                 img.onload = () => {