Skip to content

Commit

Permalink
Set order correctly for newly added ui nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Conway-Jones committed Dec 6, 2018
1 parent 7993ce1 commit 6c0efb9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nodes/ui_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -1945,7 +1945,8 @@
}
else {
if (groupLists[node.group]) {
groupLists[node.group].editableList('addItem',node)
if (node.order === 0) { node.order = groupLists[node.group].editableList('length'); }
groupLists[node.group].editableList('addItem',node);
}
}
}
Expand Down

0 comments on commit 6c0efb9

Please sign in to comment.