From a79ff3f417ea5725ba2920290e0dff49fb7ff55f Mon Sep 17 00:00:00 2001 From: proddy Date: Sun, 2 Feb 2025 13:28:55 +0100 Subject: [PATCH] stop flash when ems bus not yet connected --- interface/src/app/main/Dashboard.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/interface/src/app/main/Dashboard.tsx b/interface/src/app/main/Dashboard.tsx index 2bee49195..450727310 100644 --- a/interface/src/app/main/Dashboard.tsx +++ b/interface/src/app/main/Dashboard.tsx @@ -62,7 +62,7 @@ const Dashboard = () => { send: fetchDashboard, error } = useRequest(readDashboard, { - initialData: { connected: false, nodes: [] } + initialData: { connected: true, nodes: [] } }).onSuccess((event) => { if (event.data.nodes.length !== parentNodes) { setParentNodes(event.data.nodes.length); // count number of parents/devices @@ -238,7 +238,7 @@ const Dashboard = () => { )} - {data.connected && !hasFavEntities && ( + {data.connected && data.nodes.length > 0 && !hasFavEntities && ( {LL.NO_DATA_1()}