Skip to content

Commit

Permalink
Add node variable initialization to fix node undefined error
Browse files Browse the repository at this point in the history
  • Loading branch information
leibowitz authored and manelclos committed Aug 17, 2020
1 parent 325e090 commit da085e1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions smart_selects/static/smart-selects/admin/js/chainedm2m.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@
$selectField.html(options);
if ($selectedto.length) {
$selectedto.html(selectedoptions);
var node;
// SelectBox is a global var from djangojs "admin/js/SelectBox.js"
for (i = 0, j = selectedoptions.length; i < j; i = i + 1) {
node = selectedoptions[i];
Expand Down

0 comments on commit da085e1

Please # to comment.