summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2020-11-02 16:07:50 +0100
committerRobin Appelman <robin@icewind.nl>2020-11-02 16:07:50 +0100
commitb4107c3442da31bfa3add4daede9a6bbcc8eb028 (patch)
treec179b74d1f076bef1f9c931c91f398b676d22375 /core/src
parentff08b10a897f059adbd30b61e6f4ba1e9af7b719 (diff)
downloadnextcloud-server-b4107c3442da31bfa3add4daede9a6bbcc8eb028.tar.gz
nextcloud-server-b4107c3442da31bfa3add4daede9a6bbcc8eb028.zip
ensure filepicker list is empty before populating
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'core/src')
-rw-r--r--core/src/OC/dialogs.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/src/OC/dialogs.js b/core/src/OC/dialogs.js
index e7e5ca4d310..df0794711f1 100644
--- a/core/src/OC/dialogs.js
+++ b/core/src/OC/dialogs.js
@@ -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