mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
* remove redundant key access * update snapshot
This commit is contained in:
parent
1212057345
commit
ba6e295e42
2 changed files with 5 additions and 11 deletions
|
@ -14,9 +14,7 @@ exports[`Stat Items disable charts it renders the default widget 1`] = `
|
|||
]
|
||||
}
|
||||
>
|
||||
<Styled(EuiFlexItem)
|
||||
key="stat-items-undefined"
|
||||
>
|
||||
<Styled(EuiFlexItem)>
|
||||
<EuiFlexItem
|
||||
className="sc-bxivhb bQCHAr"
|
||||
>
|
||||
|
@ -120,9 +118,7 @@ exports[`Stat Items disable charts it renders the default widget 2`] = `
|
|||
]
|
||||
}
|
||||
>
|
||||
<Styled(EuiFlexItem)
|
||||
key="stat-items-undefined"
|
||||
>
|
||||
<Styled(EuiFlexItem)>
|
||||
<EuiFlexItem
|
||||
className="sc-bxivhb bQCHAr"
|
||||
>
|
||||
|
@ -299,9 +295,7 @@ exports[`Stat Items rendering kpis with charts it renders the default widget 1`]
|
|||
]
|
||||
}
|
||||
>
|
||||
<Styled(EuiFlexItem)
|
||||
key="stat-items-undefined"
|
||||
>
|
||||
<Styled(EuiFlexItem)>
|
||||
<EuiFlexItem
|
||||
className="sc-bxivhb bQCHAr"
|
||||
>
|
||||
|
|
|
@ -55,7 +55,7 @@ export interface StatItemsProps extends StatItems {
|
|||
}
|
||||
|
||||
export const StatItemsComponent = React.memo<StatItemsProps>(
|
||||
({ fields, description, key, grow, barChart, areaChart, enableAreaChart, enableBarChart }) => {
|
||||
({ fields, description, grow, barChart, areaChart, enableAreaChart, enableBarChart }) => {
|
||||
const isBarChartDataAbailable =
|
||||
barChart &&
|
||||
barChart.length &&
|
||||
|
@ -65,7 +65,7 @@ export const StatItemsComponent = React.memo<StatItemsProps>(
|
|||
areaChart.length &&
|
||||
areaChart.every(item => item.value != null && item.value.length > 0);
|
||||
return (
|
||||
<FlexItem key={`stat-items-${key}`} grow={grow}>
|
||||
<FlexItem grow={grow}>
|
||||
<EuiPanel>
|
||||
<EuiTitle size="xxxs">
|
||||
<h6>{description}</h6>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue