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 authored May 29, 2024
1 parent 292da73 commit 95694ae
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 95694ae

Please sign in to comment.