Skip to content

Commit

Permalink
fix: Wrong values were displayed in node table columns because of dup…
Browse files Browse the repository at this point in the history
…licate column names
  • Loading branch information
tiithansen committed Jul 6, 2024
1 parent ba9e4ff commit 4ae6f44
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/pages/Clusters/tabs/Nodes/Nodes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const columns: Array<Column<TableRow>> = [
},
columns: [
{
id: 'free',
id: 'memory_free',
header: 'FREE',
accessor: (row: TableRow) => row.memory.free,
cellType: 'formatted',
Expand All @@ -96,7 +96,7 @@ const columns: Array<Column<TableRow>> = [
}
},
{
id: 'total',
id: 'memory_total',
header: 'TOTAL',
accessor: (row: TableRow) => row.memory.total,
cellType: 'formatted',
Expand All @@ -111,7 +111,7 @@ const columns: Array<Column<TableRow>> = [
}
},
{
id: 'requests',
id: 'memory_requests',
header: 'REQUESTS',
accessor: (row: TableRow) => row.memory.requests,
cellType: 'formatted',
Expand All @@ -126,7 +126,7 @@ const columns: Array<Column<TableRow>> = [
}
},
{
id: 'usage',
id: 'memory_usage',
header: 'USAGE',
accessor: (row: TableRow) => row.memory.usage,
cellType: 'formatted',
Expand All @@ -151,7 +151,7 @@ const columns: Array<Column<TableRow>> = [
},
columns: [
{
id: 'requests',
id: 'cpu_requests',
header: 'REQUESTS',
accessor: (row: TableRow) => row.cpu.requests,
cellType: 'formatted',
Expand All @@ -165,7 +165,7 @@ const columns: Array<Column<TableRow>> = [
}
},
{
id: 'cores',
id: 'cpu_cores',
header: 'CORES',
accessor: (row: TableRow) => row.cpu.cores,
cellType: 'formatted',
Expand All @@ -179,7 +179,7 @@ const columns: Array<Column<TableRow>> = [
}
},
{
id: 'usage',
id: 'cpu_usage',
header: 'USAGE',
accessor: (row: TableRow) => row.cpu.usage,
cellType: 'formatted',
Expand Down

0 comments on commit 4ae6f44

Please sign in to comment.