fix ueba store (#115842)

This commit is contained in:
Xavier Mouligneau 2021-10-20 17:48:15 -04:00 committed by GitHub
parent e37c25991e
commit 8a0a96e422
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -384,10 +384,8 @@ export class Plugin implements IPlugin<PluginSetup, PluginStart, SetupPlugins, S
...subPlugins.hosts.storageTimelines!.timelineById,
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
...subPlugins.network.storageTimelines!.timelineById,
...(this.experimentalFeatures.uebaEnabled && subPlugins.ueba != null
? // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
subPlugins.ueba.storageTimelines!.timelineById
: {}),
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
...subPlugins.ueba.storageTimelines!.timelineById,
},
},
};
@ -418,9 +416,7 @@ export class Plugin implements IPlugin<PluginSetup, PluginStart, SetupPlugins, S
{
...subPlugins.hosts.store.reducer,
...subPlugins.network.store.reducer,
...(this.experimentalFeatures.uebaEnabled && subPlugins.ueba != null
? subPlugins.ueba.store.reducer
: {}),
...subPlugins.ueba.store.reducer,
timeline: timelineReducer,
...subPlugins.management.store.reducer,
...tGridReducer,