Skip to content

Commit

Permalink
fix(dashboard): Fix subnet id showing and searching
Browse files Browse the repository at this point in the history
  • Loading branch information
sasa-tomic committed Jul 27, 2023
1 parent b938b5f commit 154478e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dashboard/packages/app/src/components/subnets/NodeSearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion dashboard/packages/app/src/components/subnets/types.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export interface Node {
operator: Operator;
hostname: string;
label?: string;
subnet?: string;
subnet_id?: string;
dfinity_owned: boolean;
proposal?: TopologyProposal;
}
Expand Down

0 comments on commit 154478e

Please sign in to comment.