Preferences: PATCH when just changing theme (#105610)
This commit is contained in:
@@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user