From c7986e623b893efdee8e3f2c41b49f4bd3feb8b6 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 6 May 2023 15:13:02 +0200 Subject: [PATCH] Activate plot config migration --- src/stores/plotConfig.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/stores/plotConfig.ts b/src/stores/plotConfig.ts index a0b1d396..2e906098 100644 --- a/src/stores/plotConfig.ts +++ b/src/stores/plotConfig.ts @@ -17,12 +17,11 @@ function migratePlotConfigs() { plotConfigName: localStorage.getItem(PLOT_CONFIG_NAME) || 'default', }; localStorage.setItem(FT_PLOT_CONFIG_KEY, JSON.stringify(res)); - // TODO: Remove old settings to avoid constant migration - // localStorage.removeItem(PLOT_CONFIG); - // localStorage.removeItem(PLOT_CONFIG_NAME); + localStorage.removeItem(PLOT_CONFIG); + localStorage.removeItem(PLOT_CONFIG_NAME); } } -// migratePlotConfigs(); +migratePlotConfigs(); export const usePlotConfigStore = defineStore('plotConfig', { state: () => {