IO-233 Add Vehicle History
This commit is contained in:
@@ -101,7 +101,8 @@ export function DmsContainer({ bodyshop, setBreadcrumbs, setSelectedHeader }) {
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, []);
|
||||
|
||||
if (!jobId || !bodyshop.cdk_dealerid) return <Result status="404" />;
|
||||
if (!jobId || !bodyshop.cdk_dealerid || !(data && data.jobs_by_pk))
|
||||
return <Result status="404" />;
|
||||
|
||||
if (loading) return <LoadingSpinner />;
|
||||
if (error) return <AlertComponent message={error.message} type="error" />;
|
||||
@@ -110,7 +111,7 @@ export function DmsContainer({ bodyshop, setBreadcrumbs, setSelectedHeader }) {
|
||||
<div>
|
||||
<Row gutter={32}>
|
||||
<Col span={18}>
|
||||
{data && data.jobs_by_pk.ro_number}
|
||||
{data && data.jobs_by_pk && data.jobs_by_pk.ro_number}
|
||||
<DmsAllocationsSummary socket={socket} jobId={jobId} />
|
||||
<DmsPostForm
|
||||
socket={socket}
|
||||
|
||||
Reference in New Issue
Block a user