Merge branch 'benphelps:main' into feature/mealie-widget

This commit is contained in:
joncrangle
2023-08-11 15:10:16 -04:00
committed by GitHub
3 changed files with 7 additions and 7 deletions

View File

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