From 154478e2628db05275b94a7ee67d9377c4a25efb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C5=A1a=20Tomi=C4=87?= Date: Thu, 27 Jul 2023 12:10:45 +0200 Subject: [PATCH] fix(dashboard): Fix subnet id showing and searching --- dashboard/packages/app/src/components/subnets/NodeSearch.tsx | 4 ++-- dashboard/packages/app/src/components/subnets/types.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dashboard/packages/app/src/components/subnets/NodeSearch.tsx b/dashboard/packages/app/src/components/subnets/NodeSearch.tsx index 25732eda..bd3f795a 100644 --- a/dashboard/packages/app/src/components/subnets/NodeSearch.tsx +++ b/dashboard/packages/app/src/components/subnets/NodeSearch.tsx @@ -75,10 +75,10 @@ export default function NodeSearch({ onSearchChange, expand }: { onSearchChange: emptyValue: "", field: 'subnetDetailed.metadata.name', type: 'string', - render: (rowData) => rowData.subnet && `${rowData.subnetDetailed?.metadata.name} (${rowData.subnet})` + render: (rowData) => rowData.subnet_id && `${rowData.subnetDetailed?.metadata.name} (${rowData.subnet_id})` }, { - field: 'subnet', + field: 'subnet_id', type: 'string', hidden: true, searchable: true, diff --git a/dashboard/packages/app/src/components/subnets/types.tsx b/dashboard/packages/app/src/components/subnets/types.tsx index 0fb642e8..0b66c826 100644 --- a/dashboard/packages/app/src/components/subnets/types.tsx +++ b/dashboard/packages/app/src/components/subnets/types.tsx @@ -30,7 +30,7 @@ export interface Node { operator: Operator; hostname: string; label?: string; - subnet?: string; + subnet_id?: string; dfinity_owned: boolean; proposal?: TopologyProposal; }