From f1af9580564bdeffe60b282eeca7d80ba9ccd527 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Salgado?= Date: Thu, 6 May 2021 19:20:24 +0100 Subject: [PATCH] fix: config migration --- migrations/1620319260238-timezones.js | 2 +- new-lamassu-admin/src/pages/Locales/Locales.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/migrations/1620319260238-timezones.js b/migrations/1620319260238-timezones.js index 5c024d4b..c610304b 100644 --- a/migrations/1620319260238-timezones.js +++ b/migrations/1620319260238-timezones.js @@ -5,7 +5,7 @@ exports.up = function (next) { settingsLoader.loadLatest() .then(({ config }) => { if (!_.isEmpty(config)) - config.locale.timezone = '0:0' + config.locale_timezone = '0:0' return settingsLoader.saveConfig(config) }) .then(() => next()) diff --git a/new-lamassu-admin/src/pages/Locales/Locales.js b/new-lamassu-admin/src/pages/Locales/Locales.js index a91459e5..f80f4d1e 100644 --- a/new-lamassu-admin/src/pages/Locales/Locales.js +++ b/new-lamassu-admin/src/pages/Locales/Locales.js @@ -121,6 +121,8 @@ const Locales = ({ name: SCREEN_KEY }) => { const locale = config && !R.isEmpty(config) ? config : localeDefaults const localeOverrides = locale.overrides ?? [] + console.log(data) + const handleSave = it => { const newConfig = toNamespace(SCREEN_KEY)(it.locale[0])