Fix: octoprint error when progress empty (#2247)

pull/2249/head
shamoon 1 year ago committed by GitHub
parent 1da9255578
commit bec1e5fff2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -39,7 +39,7 @@ export default function Component({ service }) {
const printingStateFalgs = ["Printing", "Paused", "Pausing", "Resuming"]; const printingStateFalgs = ["Printing", "Paused", "Pausing", "Resuming"];
if (printingStateFalgs.includes(state)) { if (printingStateFalgs.includes(state)) {
const { completion } = jobStats?.progress ?? undefined; const completion = jobStats?.progress?.completion;
if (!jobStats || !completion) { if (!jobStats || !completion) {
return ( return (

Loading…
Cancel
Save