Skip to content

Commit

Permalink
Fix #10368 fix positioning of groups generated from GPT tool (#10370) (
Browse files Browse the repository at this point in the history
  • Loading branch information
MV88 committed May 30, 2024
1 parent 52ff769 commit 34cf502
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/client/reducers/layers.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const insertNode = (nodes, node, parent, asFirst = false) => {
}
return nodes.map(n => isString(n) ? n : (n.id === parent ? {
...n,
nodes: [...n.nodes, node]
nodes: asFirst ? [node, ...n.nodes] : [...n.nodes, node]
} : {
...n,
nodes: insertNode(n.nodes, node, parent, asFirst)
Expand Down

0 comments on commit 34cf502

Please sign in to comment.