mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
useMemo removed for simple calculations. changes to these props were not picked up if new events changed their result (#142810)
Co-authored-by: Karl Godard <karlgodard@elastic.co>
This commit is contained in:
parent
4f649c09c5
commit
275da5403f
1 changed files with 2 additions and 2 deletions
|
@ -99,8 +99,8 @@ export function ProcessTreeNode({
|
|||
}, [selectedProcess, process, childrenExpanded]);
|
||||
|
||||
const alerts = process.getAlerts();
|
||||
const hasAlerts = useMemo(() => !!alerts.length, [alerts]);
|
||||
const hasOutputs = useMemo(() => process.hasOutput(), [process]);
|
||||
const hasAlerts = !!alerts.length;
|
||||
const hasOutputs = process.hasOutput();
|
||||
const hasInvestigatedAlert = useMemo(
|
||||
() =>
|
||||
!!(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue