Skip to content

armgit / ente

Public Imported from GitHub
0

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

Prune log only catch

Manav Rathi5fe0bf95c4c9
diff --git a/web/apps/photos/src/components/PhotoFrame.tsx b/web/apps/photos/src/components/PhotoFrame.tsx
index 27eba279d7..2fb8e7065c 100644
--- a/web/apps/photos/src/components/PhotoFrame.tsx
+++ b/web/apps/photos/src/components/PhotoFrame.tsx
@@ -457,19 +457,14 @@ const PhotoFrame = ({
srcURL: SourceURLs,
overwrite: boolean,
) => {
- try {
- if (updateSourceURL(index, item.id, srcURL, overwrite)) {
- log.info(
- `[${item.id}] calling invalidateCurrItems for src, source loaded: ${item.isSourceLoaded}`,
- );
- instance.invalidateCurrItems();
- if ((instance as any).isOpen()) {
- instance.updateSize(true);
- }
+ if (updateSourceURL(index, item.id, srcURL, overwrite)) {
+ log.info(
+ `[${item.id}] calling invalidateCurrItems for src, source loaded: ${item.isSourceLoaded}`,
+ );
+ instance.invalidateCurrItems();
+ if ((instance as any).isOpen()) {
+ instance.updateSize(true);
}
- } catch (e) {
- log.error("updating photoswipe after src url update failed", e);
- throw e;
}
};