From 8bfff4185c2ced272585612282a3f04073bd17a0 Mon Sep 17 00:00:00 2001 From: Josh Hunt Date: Mon, 19 May 2025 13:23:36 +0100 Subject: [PATCH] Preferences: PATCH when just changing theme (#105610) --- public/app/core/services/theme.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/public/app/core/services/theme.ts b/public/app/core/services/theme.ts index 30d63375f6b..9dcbdb552e8 100644 --- a/public/app/core/services/theme.ts +++ b/public/app/core/services/theme.ts @@ -46,10 +46,7 @@ export async function changeTheme(themeId: string, runtimeOnly?: boolean) { // Persist new theme const service = new PreferencesService('user'); - const currentPref = await service.load(); - - await service.update({ - ...currentPref, + await service.patch({ theme: themeId, }); }