Preferences: PATCH when just changing theme (#105610)

This commit is contained in:
Josh Hunt
2025-05-19 13:23:36 +01:00
committed by GitHub
parent bdae4424e8
commit 8bfff4185c
+1 -4
View File
@@ -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,
});
}