diff --git a/client/src/components/dashboard-components/job-lifecycle/job-lifecycle-dashboard.component.jsx b/client/src/components/dashboard-components/job-lifecycle/job-lifecycle-dashboard.component.jsx index 123907591..86df052e1 100644 --- a/client/src/components/dashboard-components/job-lifecycle/job-lifecycle-dashboard.component.jsx +++ b/client/src/components/dashboard-components/job-lifecycle/job-lifecycle-dashboard.component.jsx @@ -9,6 +9,7 @@ import axios from "axios"; const fortyFiveDaysAgo = () => dayjs().subtract(45, 'day').toLocaleString(); export default function JobLifecycleDashboardComponent({data, bodyshop, ...cardProps}) { + console.log("🚀 ~ JobLifecycleDashboardComponent ~ bodyshop:", bodyshop) const {t} = useTranslation(); const [loading, setLoading] = useState(false); const [lifecycleData, setLifecycleData] = useState(null); @@ -19,7 +20,7 @@ export default function JobLifecycleDashboardComponent({data, bodyshop, ...cardP setLoading(true); const response = await axios.post("/job/lifecycle", { jobids: data.job_lifecycle.map(x => x.id), - statuses: bodyshop.md_order_statuses + statuses: bodyshop.md_ro_statuses.statuses }); setLifecycleData(response.data.durations); setLoading(false); @@ -166,4 +167,4 @@ job_lifecycle: jobs(where: { }) { id actual_in -} `; \ No newline at end of file +} `; diff --git a/client/src/components/dashboard-grid/dashboard-grid.component.jsx b/client/src/components/dashboard-grid/dashboard-grid.component.jsx index ffa9a8f7a..78466ad0a 100644 --- a/client/src/components/dashboard-grid/dashboard-grid.component.jsx +++ b/client/src/components/dashboard-grid/dashboard-grid.component.jsx @@ -184,7 +184,7 @@ export function DashboardGridComponent({currentUser, bodyshop}) { }} onClick={() => handleRemoveComponent(item.i)} /> - + );