Skip to content

Commit

Permalink
Merge branch 'release-3.9.6'
Browse files Browse the repository at this point in the history
  • Loading branch information
oat-github-bot committed Jan 27, 2025
2 parents ef0ff66 + 9e5e88b commit 94532f8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@oat-sa/tao-core-ui",
"version": "3.9.5",
"version": "3.9.6",
"displayName": "TAO Core UI",
"description": "UI libraries of TAO",
"scripts": {
Expand Down
7 changes: 6 additions & 1 deletion src/resourcemgr/fileBrowser.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,12 @@ export default function (options) {
}
if (root !== 'local' || !_.find(subTree.children, { name: file.name })) {
updatePermissions(file);
if (subTree.children.length === subTree.total) {
const childrenFilesOnly = _.filter(subTree.children, function (child) {
// Only file object has link property
return Object.prototype.hasOwnProperty.call(child, 'link');
});

if (childrenFilesOnly.length === subTree.total) {
// all children loaded new file can be pushed to the end of tree
// if not all, new file will be loaded with next page
subTree.children.push(file);
Expand Down

0 comments on commit 94532f8

Please sign in to comment.