Skip to content

Commit

Permalink
fix: apply ESLint
Browse files Browse the repository at this point in the history
  • Loading branch information
bartlomiejmarszal committed Jan 13, 2025
1 parent 4f20607 commit b50ef1c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/resourcemgr/fileBrowser.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ export default function (options) {
if (root !== 'local' || !_.find(subTree.children, { name: file.name })) {
updatePermissions(file);
const childrenFilesOnly = _.filter(subTree.children, function (child) {
return !child.hasOwnProperty('path');
// Only file object has link property
return Object.prototype.hasOwnProperty.call(child, 'link');
});

if (childrenFilesOnly.length === subTree.total) {
Expand Down

0 comments on commit b50ef1c

Please sign in to comment.