From 00ed3399714e3d3ff6e345969d71f93b48fed144 Mon Sep 17 00:00:00 2001 From: Gompa Date: Wed, 2 Apr 2025 20:12:25 +0200 Subject: [PATCH] Fix imagedownloader Uncaught (in promise) when no changes are done (#6652) * fix imagedownloader error when no changes are done with catch * Update src/components/imageeditor/imageeditor.js Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update src/components/imageeditor/imageeditor.js remove console.debug Co-authored-by: viown <48097677+viown@users.noreply.github.com> * Update src/components/imageeditor/imageeditor.js Co-authored-by: viown <48097677+viown@users.noreply.github.com> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: viown <48097677+viown@users.noreply.github.com> --- src/components/imageeditor/imageeditor.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/imageeditor/imageeditor.js b/src/components/imageeditor/imageeditor.js index 8d1134c7c0..c975cdd7dd 100644 --- a/src/components/imageeditor/imageeditor.js +++ b/src/components/imageeditor/imageeditor.js @@ -264,6 +264,8 @@ function showImageDownloader(page, imageType) { ).then(function () { hasChanges = true; reload(page); + }).catch(function () { + // image downloader closed }); }); }