ensure filepicker list is empty before populating

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-11-02 16:07:50 +01:00 committed by npmbuildbot-nextcloud[bot]
parent 7e1c26ebea
commit 773bc3b496
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