diff options
author | Robin Appelman <robin@icewind.nl> | 2020-10-28 17:40:51 +0100 |
---|---|---|
committer | npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com> | 2020-10-28 20:40:01 +0000 |
commit | 85ae8d5c9f1c0390461968d8822c7eea178f5fc3 (patch) | |
tree | 7ff9746eb73a5f6fa8527c3f495d5c3113447700 /core/src/OC | |
parent | e3e6bc5972668b004fca4d337ca76841a1e06edc (diff) | |
download | nextcloud-server-85ae8d5c9f1c0390461968d8822c7eea178f5fc3.tar.gz nextcloud-server-85ae8d5c9f1c0390461968d8822c7eea178f5fc3.zip |
catch errors when closing file conflict dialog
Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
Diffstat (limited to 'core/src/OC')
-rw-r--r-- | core/src/OC/dialogs.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/src/OC/dialogs.js b/core/src/OC/dialogs.js index 9f2a24a4deb..e7e5ca4d310 100644 --- a/core/src/OC/dialogs.js +++ b/core/src/OC/dialogs.js @@ -930,7 +930,11 @@ const Dialogs = { closeButton: null, close: function() { self._fileexistsshown = false - $(this).ocdialog('destroy').remove() + try { + $(this).ocdialog('destroy').remove() + } catch (e) { + // ignore + } } }) |