From 079cae767c48bf6eebaab7601e57f2bd7c6342b2 Mon Sep 17 00:00:00 2001 From: proddy Date: Sun, 13 Oct 2024 23:13:55 +0100 Subject: [PATCH] fix count --- interface/src/app/main/Dashboard.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface/src/app/main/Dashboard.tsx b/interface/src/app/main/Dashboard.tsx index a2892d55c..389311787 100644 --- a/interface/src/app/main/Dashboard.tsx +++ b/interface/src/app/main/Dashboard.tsx @@ -59,7 +59,7 @@ const Dashboard = () => { } = useRequest(readDashboard, { initialData: [] }).onSuccess((event) => { - if (event.data.length > parentNodes) { + if (event.data.length !== parentNodes) { setParentNodes(event.data.length); // count number of parents/devices } });