diff --git a/src/components/Dashboard/Modals/SelectElement/Components/Overview/AvailableElementsOverview.tsx b/src/components/Dashboard/Modals/SelectElement/Components/Overview/AvailableElementsOverview.tsx index d746ae334..edb689821 100644 --- a/src/components/Dashboard/Modals/SelectElement/Components/Overview/AvailableElementsOverview.tsx +++ b/src/components/Dashboard/Modals/SelectElement/Components/Overview/AvailableElementsOverview.tsx @@ -50,7 +50,7 @@ export const AvailableElementTypes = ({ { id: uuidv4(), // Thank you ChatGPT ;) - position: previousConfig.categories.length + 1, + position: previousConfig.wrappers.length + 1, }, ], categories: [ diff --git a/src/tools/config/migrateConfig.ts b/src/tools/config/migrateConfig.ts index 595635a72..f6e8b9c37 100644 --- a/src/tools/config/migrateConfig.ts +++ b/src/tools/config/migrateConfig.ts @@ -47,7 +47,7 @@ export function migrateConfig(config: Config): ConfigType { wrappers: [ { id: 'default', - position: 1, + position: 0, }, ], };