Skip to content

Commit

Permalink
declared variable child_node; fixes #3116
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer committed Sep 11, 2024
1 parent 38db825 commit 082b0fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/javascript/spotlight/admin/spotlight_nestable.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const Module = (function() {
var children = data[i]['children'];
for(var child in children){
var id = children[child]['id']
child_node = findNode(id, container);
var child_node = findNode(id, container);
setWeight(child_node, weight++);
setParent(child_node, parent_id);
}
Expand Down Expand Up @@ -65,4 +65,4 @@ const Module = (function() {
}
})();

export default Module
export default Module

0 comments on commit 082b0fd

Please sign in to comment.