From 082b0fd94f9d872289916571be95b6f3735c80e5 Mon Sep 17 00:00:00 2001 From: Chris Beer Date: Wed, 11 Sep 2024 12:17:20 -0700 Subject: [PATCH] declared variable child_node; fixes #3116 --- app/javascript/spotlight/admin/spotlight_nestable.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/javascript/spotlight/admin/spotlight_nestable.js b/app/javascript/spotlight/admin/spotlight_nestable.js index 9f1419b7a..bfcfdea1d 100644 --- a/app/javascript/spotlight/admin/spotlight_nestable.js +++ b/app/javascript/spotlight/admin/spotlight_nestable.js @@ -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); } @@ -65,4 +65,4 @@ const Module = (function() { } })(); -export default Module \ No newline at end of file +export default Module