From 2708b3abbced02b37d531ff52c1a52f4f4c16423 Mon Sep 17 00:00:00 2001 From: Max Fitton Date: Mon, 30 Nov 2020 18:43:09 -0800 Subject: [PATCH] [Dashboard][Bug] Fix duplicate node total rows in dashboard (#12410) * Fix duplicate node total rows in dashboard by changing the react key of the NodeTotalRow component from the node IP to the node ID (node IP can be duplicated in the case of docker). * simplify a piece of test code and fix a flaky time out * lint --- .../pages/dashboard/node-info/NodeInfo.tsx | 2 +- dashboard/tests/test_dashboard.py | 36 ++++++++----------- 2 files changed, 15 insertions(+), 23 deletions(-) diff --git a/dashboard/client/src/pages/dashboard/node-info/NodeInfo.tsx b/dashboard/client/src/pages/dashboard/node-info/NodeInfo.tsx index be9d3787e..2b1a12c03 100644 --- a/dashboard/client/src/pages/dashboard/node-info/NodeInfo.tsx +++ b/dashboard/client/src/pages/dashboard/node-info/NodeInfo.tsx @@ -88,7 +88,7 @@ const makeGroupedTableContents = ( ); return (