Merge pull request #23850 from nextcloud/backport/23841/stable20

[stable20] ensure filepicker list is empty before populating
This commit is contained in:
Morris Jobke 2020-11-03 10:47:11 +01:00 committed by GitHub
commit cb31977ba6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 4 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

@ -1164,6 +1164,8 @@ const Dialogs = {
self.$fileListHeader.show()
}
self.$filelist.empty();
$.each(files, function(idx, entry) {
entry.icon = OC.MimeType.getIconUrl(entry.mimetype)
var simpleSize, sizeColor