🐛 Fix config migrator wrapper positons

This commit is contained in:
Manuel committed 2023-01-18 17:34:17 +01:00
1 parent 3853cd6a72
commit 1e6703ec3f
2 files changed
+2 -2

No files matched your search

@@ -50,7 +50,7 @@ export const AvailableElementTypes = ({
{
id: uuidv4(),
// Thank you ChatGPT ;)
position: previousConfig.categories.length + 1,
position: previousConfig.wrappers.length + 1,
},
],
categories: [
+1 -1
View File
@@ -47,7 +47,7 @@ export function migrateConfig(config: Config): ConfigType {
wrappers: [
{
id: 'default',
position: 1,
position: 0,
},
],
};