🐛 Fix config migrator wrapper positons

This commit is contained in:
Manuel
2023-01-18 13:30:20 +01:00
parent af7f1ffad1
commit f7c9564bbe
2 changed files with 2 additions and 2 deletions

View File

@@ -50,7 +50,7 @@ export const AvailableElementTypes = ({
{
id: uuidv4(),
// Thank you ChatGPT ;)
position: previousConfig.categories.length + 1,
position: previousConfig.wrappers.length + 1,
},
],
categories: [

View File

@@ -47,7 +47,7 @@ export function migrateConfig(config: Config): ConfigType {
wrappers: [
{
id: 'default',
position: 1,
position: 0,
},
],
};