Skip to content

Commit

Permalink
reversed distribution bar array
Browse files Browse the repository at this point in the history
  • Loading branch information
animehart committed Nov 14, 2024
1 parent 4e39671 commit 8cff4f7
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,12 @@ export const AlertsDetailsTable = memo(
const alertDataResults = (data?.hits?.hits as AlertsDetailsFields[])?.map(
(item: AlertsDetailsFields) => {
return {
id: item.fields?._id[0],
index: item.fields?._index[0],
reason: item.fields?.['kibana.alert.reason'][0],
ruleName: item.fields?.['kibana.alert.rule.name'][0],
ruleUuid: item.fields?.['kibana.alert.rule.uuid'][0],
severity: item.fields?.['kibana.alert.severity'][0],
id: item.fields?._id?.[0],
index: item.fields?._index?.[0],
reason: item.fields?.['kibana.alert.reason']?.[0],
ruleName: item.fields?.['kibana.alert.rule.name']?.[0],
ruleUuid: item.fields?.['kibana.alert.rule.uuid']?.[0],
severity: item.fields?.['kibana.alert.severity']?.[0],
};
}
);
Expand Down Expand Up @@ -246,7 +246,7 @@ export const AlertsDetailsTable = memo(
</EuiLink>

<EuiSpacer size="xl" />
<DistributionBar stats={alertStats} />
<DistributionBar stats={alertStats.reverse()} />
<EuiSpacer size="l" />
<EuiBasicTable
items={pageOfItems || []}
Expand Down

0 comments on commit 8cff4f7

Please sign in to comment.