Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

fix fileURL state set

Abhinav687726fc45be
diff --git a/apps/photos/src/components/PhotoViewer/ImageEditorOverlay/index.tsx b/apps/photos/src/components/PhotoViewer/ImageEditorOverlay/index.tsx
index 0afe845ece..16c11f198d 100644
--- a/apps/photos/src/components/PhotoViewer/ImageEditorOverlay/index.tsx
+++ b/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 = () => {