From f99b70273b5cda531dc05310756d3e0b74e6128b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Batuhan=20=C5=9Eanl=C4=B1?= Date: Tue, 26 Sep 2023 13:03:05 +0300 Subject: [PATCH] added dynamic value on block --- src/widgets/octoprint/component.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/widgets/octoprint/component.jsx b/src/widgets/octoprint/component.jsx index 758c0aa8..ca006d72 100644 --- a/src/widgets/octoprint/component.jsx +++ b/src/widgets/octoprint/component.jsx @@ -8,9 +8,9 @@ export default function Component({ service }) { const { data: printerStats, error: printerStatsError } = useWidgetAPI(widget, "printer_stats"); const { data: jobStats, error: jobStatsError } = useWidgetAPI(widget, "job_stats"); - if (printerStatsError && jobStats && jobStats.state==="Offline") { + if (printerStatsError && jobStats) { return - + }