From 34b05bd42696d7479b5adeecbabfdc4471a56f14 Mon Sep 17 00:00:00 2001 From: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com> Date: Thu, 17 Jun 2021 16:01:19 -0700 Subject: [PATCH] Fix Singel Value widget not rendering on tab switch (#819) Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com> --- .../Console/Dashboard/Prometheus/Widgets/SingleValueWidget.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/portal-ui/src/screens/Console/Dashboard/Prometheus/Widgets/SingleValueWidget.tsx b/portal-ui/src/screens/Console/Dashboard/Prometheus/Widgets/SingleValueWidget.tsx index 0f97b2aa9..0826fd48e 100644 --- a/portal-ui/src/screens/Console/Dashboard/Prometheus/Widgets/SingleValueWidget.tsx +++ b/portal-ui/src/screens/Console/Dashboard/Prometheus/Widgets/SingleValueWidget.tsx @@ -64,7 +64,7 @@ const SingleValueWidget = ({ classes, apiPrefix, }: ISingleValueWidget) => { - const [loading, setLoading] = useState(false); + const [loading, setLoading] = useState(true); const [data, setData] = useState(""); useEffect(() => {