Resolved issues on time ticket modal IO-563
This commit is contained in:
@@ -138,11 +138,13 @@ export default function TimeTicketModalComponent({
|
||||
</Form.Item>
|
||||
</LayoutFormRow>
|
||||
<Form.Item shouldUpdate>
|
||||
<LaborAllocationsTable
|
||||
jobId={form.getFieldValue("jobid")}
|
||||
joblines={lineTicketData.joblines}
|
||||
timetickets={lineTicketData.timetickets}
|
||||
/>
|
||||
{() => (
|
||||
<LaborAllocationsTable
|
||||
jobId={form.getFieldValue("jobid")}
|
||||
joblines={lineTicketData.joblines}
|
||||
timetickets={lineTicketData.timetickets}
|
||||
/>
|
||||
)}
|
||||
</Form.Item>
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -95,7 +95,8 @@ export function TimeTicketModalContainer({
|
||||
if (enterAgain) {
|
||||
//Capture the existing information and repopulate it.
|
||||
|
||||
const prev = form.getFieldsValue(["jobid", "employeeid", "date"]);
|
||||
const prev = form.getFieldsValue(["date"]);
|
||||
|
||||
form.resetFields();
|
||||
form.setFieldsValue(prev);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user