mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-13 08:20:34 +00:00
Fix: octoprint error when progress empty (#2247)
This commit is contained in:
parent
1da9255578
commit
bec1e5fff2
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue