From f05d909a5c4ca6a230c3ec86a316f001c76225d6 Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Tue, 19 Mar 2024 12:59:23 -0700 Subject: [PATCH] IO-2708 Lifecycle dashboard component. --- .../job-lifecycle/job-lifecycle-dashboard.component.jsx | 5 +++-- .../components/dashboard-grid/dashboard-grid.component.jsx | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) 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)} /> - + );