Skip to content

Commit

Permalink
Fix updating guiSettings
Browse files Browse the repository at this point in the history
  • Loading branch information
egbertbouman committed Dec 13, 2024
1 parent e5dd276 commit 4f0ac1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tribler/ui/src/services/tribler.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ export class TriblerService {

async setSettings(settings: Partial<Settings>): Promise<undefined | ErrorDict | boolean> {
try {
this.guiSettings = {...settings?.ui, ...this.guiSettings};
this.guiSettings = {...this.guiSettings, ...settings?.ui};
return (await this.http.post('/settings', settings)).data.modified;
} catch (error) {
return formatAxiosError(error as Error | AxiosError);
Expand Down

0 comments on commit 4f0ac1e

Please sign in to comment.