Skip to content

Commit

Permalink
Merge pull request #6243 from sahil143/odc-4430
Browse files Browse the repository at this point in the history
ContextProviderExtension: use spread operator instead of clonedeep
  • Loading branch information
openshift-merge-robot committed Aug 6, 2020
2 parents 5361c15 + 2192775 commit 5e8c376
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/packages/console-plugin-sdk/src/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class PluginStore {
this.extensions = _.flatMap(
plugins.map((p) =>
p.extensions.map((e, index) =>
Object.freeze(augmentExtension(sanitizeExtension(_.cloneDeep(e)), p.name, index)),
Object.freeze(augmentExtension(sanitizeExtension({ ...e }), p.name, index)),
),
),
);
Expand Down

0 comments on commit 5e8c376

Please sign in to comment.