diff --git a/src/Components/Editor/Actions/AddContainer.ts b/src/Components/Editor/Actions/AddContainer.ts index 06100ea..89778ab 100644 --- a/src/Components/Editor/Actions/AddContainer.ts +++ b/src/Components/Editor/Actions/AddContainer.ts @@ -353,7 +353,7 @@ function BuildPatterns( continue; } - for (let i = newParent.pattern.children.length - 1; i >= 0; i--) { + for (let i = 0; i <= newParent.pattern.children.length - 1; i++) { const nextNode = GetNextNode(newParent.parent, newParent.pattern, i, configs, patterns); if (nextNode === undefined) {