ensure filepicker list is empty before populating

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2020-11-02 16:07:50 +01:00
parent ff08b10a89
commit b4107c3442
No known key found for this signature in database
GPG Key ID: 42B69D8A64526EFB
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