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