Merge pull request #23841 from nextcloud/filepicker-empty-list

ensure filepicker list is empty before populating
This commit is contained in:
Roeland Jago Douma 2020-11-02 20:23:28 +01:00 committed by GitHub
commit 65375320fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

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