Fix: octoprint error when progress empty (#2247)
This commit is contained in:
1 parent
1da9255578
commit
bec1e5fff2
1 file changed
+1
-1
@@ -39,7 +39,7 @@ export default function Component({ service }) {
|
||||
const printingStateFalgs = ["Printing", "Paused", "Pausing", "Resuming"];
|
||||
|
||||
if (printingStateFalgs.includes(state)) {
|
||||
const { completion } = jobStats?.progress ?? undefined;
|
||||
const completion = jobStats?.progress?.completion;
|
||||
|
||||
if (!jobStats || !completion) {
|
||||
return (
|
||||
|
||||
Reference in new issue
Block a user