From b88f6ff702f4ff4d03a4c4f4bc16e7660910fbc8 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Tue, 10 May 2022 16:30:13 +0100 Subject: [PATCH] Ensure nav background colour is properly updated when changing theme --- .../design/[screenId]/theme/_components/AppThemeSelect.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/builder/src/pages/builder/app/[application]/design/[screenId]/theme/_components/AppThemeSelect.svelte b/packages/builder/src/pages/builder/app/[application]/design/[screenId]/theme/_components/AppThemeSelect.svelte index 7a003a72a2..66994cd232 100644 --- a/packages/builder/src/pages/builder/app/[application]/design/[screenId]/theme/_components/AppThemeSelect.svelte +++ b/packages/builder/src/pages/builder/app/[application]/design/[screenId]/theme/_components/AppThemeSelect.svelte @@ -16,8 +16,8 @@ try { const theme = ThemeOptions[e.detail] ?? ThemeOptions[2] await store.actions.theme.save(theme) - await store.actions.customTheme.save({ - ...get(store).customTheme, + await store.actions.navigation.save({ + ...get(store).navigation, navBackground: theme === "spectrum--light" ? "var(--spectrum-global-color-gray-50)"