Activate plot config migration

This commit is contained in:
Matthias 2023-05-06 15:13:02 +02:00
parent fc239d9e9b
commit c7986e623b

View File

@ -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: () => {