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 - + }