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>
This commit is contained in:
Robin Appelman 2020-10-28 17:40:51 +01:00 committed by npmbuildbot-nextcloud[bot]
parent e3e6bc5972
commit 85ae8d5c9f
5 changed files with 9 additions and 5 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -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
}
}
})