mirror of
https://github.com/karl0ss/homepage.git
synced 2025-05-02 13:33:40 +01:00
Fix: octoprint error when progress empty (#2247)
This commit is contained in:
parent
1da9255578
commit
bec1e5fff2
@ -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 (
|
||||
|
Loading…
x
Reference in New Issue
Block a user