Skip to content

Commit

Permalink
remove unnecessary clodedeep
Browse files Browse the repository at this point in the history
  • Loading branch information
mshustov committed Apr 14, 2021
1 parent ba59eee commit 442ce29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/public/ui_settings/ui_settings_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class UiSettingsClient implements IUiSettingsClient {
constructor(params: UiSettingsClientParams) {
this.api = params.api;
this.defaults = cloneDeep(params.defaults);
this.cache = defaultsDeep({ ...this.defaults }, cloneDeep(params.initialSettings));
this.cache = defaultsDeep({ ...this.defaults }, params.initialSettings);

params.done$.subscribe({
complete: () => {
Expand Down

0 comments on commit 442ce29

Please sign in to comment.