From f7c9564bbec5c92d32154b5daa3734dba42d934d Mon Sep 17 00:00:00 2001 From: Manuel <30572287+manuel-rw@users.noreply.github.com> Date: Wed, 18 Jan 2023 13:30:20 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20config=20migrator=20wrappe?= =?UTF-8?q?r=20positons?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Components/Overview/AvailableElementsOverview.tsx | 2 +- src/tools/config/migrateConfig.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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, }, ], };