Skip to content

Commit 64215c5

Browse files
Prevent core savedObjects plugin from being overridden (#58193) (#58194)
PR #57452 added an empty savedObjects plugin with the same name as the core plugin. Due to the way we were spreading into our context coupled with the fact that we don't get NP's whitelisting of plugins on legacy, we were overriding the core plugin here. If this happens again, we should perhaps whitelist our plugins here. Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
1 parent 0d51e6b commit 64215c5

File tree

1 file changed

+1
-0
lines changed
  • x-pack/legacy/plugins/siem/public/app

1 file changed

+1
-0
lines changed

x-pack/legacy/plugins/siem/public/app/app.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ const SiemAppComponent: React.FC<SiemAppComponentProps> = ({ core, plugins }) =>
106106
storage: new Storage(localStorage),
107107
...core,
108108
...plugins,
109+
savedObjects: core.savedObjects,
109110
}}
110111
>
111112
<StartApp {...compose(core)} />

0 commit comments

Comments
 (0)