mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-10 07:25:48 +01:00
🐛 Fix config migrator wrapper positons
This commit is contained in:
@@ -50,7 +50,7 @@ export const AvailableElementTypes = ({
|
||||
{
|
||||
id: uuidv4(),
|
||||
// Thank you ChatGPT ;)
|
||||
position: previousConfig.categories.length + 1,
|
||||
position: previousConfig.wrappers.length + 1,
|
||||
},
|
||||
],
|
||||
categories: [
|
||||
|
||||
@@ -47,7 +47,7 @@ export function migrateConfig(config: Config): ConfigType {
|
||||
wrappers: [
|
||||
{
|
||||
id: 'default',
|
||||
position: 1,
|
||||
position: 0,
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user