mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
* [Metrics UI] Fix Inventory View sorting by handling null values * Fixing situation where the id is not unique Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
parent
b17b2c3e17
commit
264c4f2feb
2 changed files with 2 additions and 2 deletions
|
@ -44,7 +44,7 @@ export const GroupOfNodes: React.FC<Props> = ({
|
|||
<Nodes>
|
||||
{group.nodes.map((node) => (
|
||||
<Node
|
||||
key={node.pathId}
|
||||
key={`${node.pathId}:${node.name}`}
|
||||
options={options}
|
||||
squareSize={group.squareSize}
|
||||
node={node}
|
||||
|
|
|
@ -10,7 +10,7 @@ import { WaffleSortOption } from '../hooks/use_waffle_options';
|
|||
|
||||
const SORT_PATHS = {
|
||||
name: (node: SnapshotNode) => last(node.path),
|
||||
value: 'metric.value',
|
||||
value: (node: SnapshotNode) => node.metric.value || 0,
|
||||
};
|
||||
|
||||
export const sortNodes = (sort: WaffleSortOption, nodes: SnapshotNode[]) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue