IO-934 Refactor some search select fields & save employee on new ticket
This commit is contained in:
@@ -92,9 +92,14 @@ export function TimeTicketModalContainer({
|
||||
if (enterAgain) {
|
||||
//Capture the existing information and repopulate it.
|
||||
|
||||
const prev = form.getFieldsValue(["date"]);
|
||||
const prev = form.getFieldsValue(["date", "employeeid"]);
|
||||
console.log(
|
||||
"🚀 ~ file: time-ticket-modal.container.jsx ~ line 96 ~ prev",
|
||||
prev
|
||||
);
|
||||
|
||||
form.resetFields();
|
||||
|
||||
form.setFieldsValue(prev);
|
||||
} else {
|
||||
toggleModalVisible();
|
||||
@@ -177,6 +182,7 @@ export function TimeTicketModalContainer({
|
||||
{timeTicketModal.context && timeTicketModal.context.id ? null : (
|
||||
<Button
|
||||
type="primary"
|
||||
htmlType="submit"
|
||||
onClick={() => {
|
||||
setEnterAgain(true);
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user