feature/IO-3499-React-19 - The Calculate button on Totals did not actually have refetch passed down
This commit is contained in:
@@ -21,13 +21,16 @@ const colSpan = {
|
||||
lg: { span: 12 }
|
||||
};
|
||||
|
||||
export function JobsTotalsTableComponent({ jobRO, currentUser, job }) {
|
||||
export function JobsTotalsTableComponent({ jobRO, currentUser, job, refetch }) {
|
||||
const { t } = useTranslation();
|
||||
|
||||
if (!job.job_totals) {
|
||||
return (
|
||||
<Card>
|
||||
<Result title={t("jobs.errors.nofinancial")} extra={<JobCalculateTotals job={job} disabled={jobRO} />} />
|
||||
<Result
|
||||
title={t("jobs.errors.nofinancial")}
|
||||
extra={<JobCalculateTotals job={job} disabled={jobRO} refetch={refetch} />}
|
||||
/>
|
||||
</Card>
|
||||
);
|
||||
}
|
||||
@@ -64,7 +67,7 @@ export function JobsTotalsTableComponent({ jobRO, currentUser, job }) {
|
||||
{(currentUser.email.includes("@imex.") || currentUser.email.includes("@rome.")) && (
|
||||
<Col span={24}>
|
||||
<Card title="DEVELOPMENT USE ONLY">
|
||||
<JobCalculateTotals job={job} disabled={jobRO} />
|
||||
<JobCalculateTotals job={job} disabled={jobRO} refetch={refetch} />
|
||||
<Collapse
|
||||
items={[
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user