Change from foreach to map for better performance
This commit is contained in:
parent
269e25c2e0
commit
78314ae950
|
|
@ -102,9 +102,7 @@ function getFolderContents() {
|
|||
redirectToLogin();
|
||||
return;
|
||||
}
|
||||
data.contents.forEach(function(entry, index) {
|
||||
$("#list").append(entry.div);
|
||||
});
|
||||
$("#list").html(data.contents.map(e => e.div).join(""));
|
||||
toastr.remove();
|
||||
},
|
||||
error : function(xhr, stat, err) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user