diff --git a/src/components/Dashboard/common/StateDisplay.jsx b/src/components/Dashboard/common/StateDisplay.jsx index 56fe851..f4b64c7 100644 --- a/src/components/Dashboard/common/StateDisplay.jsx +++ b/src/components/Dashboard/common/StateDisplay.jsx @@ -4,6 +4,7 @@ import { Progress, Flex, Space } from 'antd' import StateTag from './StateTag' const StateDisplay = ({ state, showProgress = true, showState = true }) => { + const loadingProgressTypes = ['loading', 'processing', 'queued', 'printing'] const currentState = state || { type: 'unknown', progress: 0 @@ -16,7 +17,10 @@ const StateDisplay = ({ state, showProgress = true, showState = true }) => { )} - {showProgress && currentState?.progress && currentState?.progress > 0 ? ( + {showProgress && + loadingProgressTypes.includes(currentState.type) && + currentState?.progress && + currentState?.progress > 0 ? (