Merge pull request #23774 from nextcloud/backport/23762/stable20

[stable20] catch errors when closing file conflict dialog
This commit is contained in:
Roeland Jago Douma 2020-10-29 10:30:42 +01:00 committed by GitHub
commit fcd7bcfe2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
}
}
})