Skip to content

Commit

Permalink
馃悰 Only proceed if children is set AND truthy
Browse files Browse the repository at this point in the history
Closes #3363
  • Loading branch information
foosel committed Dec 2, 2019
1 parent f72b9db commit 4f25ed5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/octoprint/static/js/app/client/files.js
Expand Up @@ -159,7 +159,7 @@
return entry;
}

if (!entry.hasOwnProperty("children")) {
if (!entry.hasOwnProperty("children") || !entry.children) {
return undefined;
}

Expand Down
2 changes: 1 addition & 1 deletion src/octoprint/static/js/app/viewmodels/files.js
Expand Up @@ -837,7 +837,7 @@ $(function() {
return element;
}

if (!element.hasOwnProperty("children")) {
if (!element.hasOwnProperty("children") || !element.children) {
return undefined;
}

Expand Down

0 comments on commit 4f25ed5

Please sign in to comment.