From 4ae6f44ad971513786209c4c5fc49708a0982dd7 Mon Sep 17 00:00:00 2001 From: Tiit Hansen Date: Sat, 6 Jul 2024 16:28:02 +0300 Subject: [PATCH] fix: Wrong values were displayed in node table columns because of duplicate column names --- src/pages/Clusters/tabs/Nodes/Nodes.tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/pages/Clusters/tabs/Nodes/Nodes.tsx b/src/pages/Clusters/tabs/Nodes/Nodes.tsx index dc0bdc1..50f3579 100644 --- a/src/pages/Clusters/tabs/Nodes/Nodes.tsx +++ b/src/pages/Clusters/tabs/Nodes/Nodes.tsx @@ -81,7 +81,7 @@ const columns: Array> = [ }, columns: [ { - id: 'free', + id: 'memory_free', header: 'FREE', accessor: (row: TableRow) => row.memory.free, cellType: 'formatted', @@ -96,7 +96,7 @@ const columns: Array> = [ } }, { - id: 'total', + id: 'memory_total', header: 'TOTAL', accessor: (row: TableRow) => row.memory.total, cellType: 'formatted', @@ -111,7 +111,7 @@ const columns: Array> = [ } }, { - id: 'requests', + id: 'memory_requests', header: 'REQUESTS', accessor: (row: TableRow) => row.memory.requests, cellType: 'formatted', @@ -126,7 +126,7 @@ const columns: Array> = [ } }, { - id: 'usage', + id: 'memory_usage', header: 'USAGE', accessor: (row: TableRow) => row.memory.usage, cellType: 'formatted', @@ -151,7 +151,7 @@ const columns: Array> = [ }, columns: [ { - id: 'requests', + id: 'cpu_requests', header: 'REQUESTS', accessor: (row: TableRow) => row.cpu.requests, cellType: 'formatted', @@ -165,7 +165,7 @@ const columns: Array> = [ } }, { - id: 'cores', + id: 'cpu_cores', header: 'CORES', accessor: (row: TableRow) => row.cpu.cores, cellType: 'formatted', @@ -179,7 +179,7 @@ const columns: Array> = [ } }, { - id: 'usage', + id: 'cpu_usage', header: 'USAGE', accessor: (row: TableRow) => row.cpu.usage, cellType: 'formatted',