From 8afe174e9f4e8a107a3f530cddca5f87f48d5cc6 Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Tue, 29 Nov 2022 13:56:34 -0700 Subject: [PATCH] Fix storage stats --- web/src/routes/Storage.jsx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/web/src/routes/Storage.jsx b/web/src/routes/Storage.jsx index 238f8eb3b..2b37718a3 100644 --- a/web/src/routes/Storage.jsx +++ b/web/src/routes/Storage.jsx @@ -15,7 +15,9 @@ export default function Storage() { } = useWs('stats'); const { data: initialStats } = useSWR('stats'); - const { service = {} } = stats || initialStats || emptyObject; + const { service } = stats || initialStats || emptyObject; + + console.log("Service is " + service); return (
@@ -36,13 +38,13 @@ export default function Storage() { Location - Used - Total + Used MB + Total MB - Recordings + Snapshots & Recordings {service['storage']['/media/frigate/recordings']['used']} {service['storage']['/media/frigate/recordings']['total']} @@ -57,8 +59,8 @@ export default function Storage() { Location - Used - Total + Used MB + Total MB