mirror of
https://github.com/Sea-Haven-Industries/shoc-frontend-new.git
synced 2026-10-04 12:32:06 +00:00
Add missing fields to form initial state
- Add internalWONumber, po, tt to initial formData - Fixes "Edit Work Order undefined" header and null PO/TT inputs
This commit is contained in:
parent
9c83713971
commit
b9e7d4f45e
1 changed files with 3 additions and 0 deletions
|
|
@ -12,6 +12,7 @@ export default function WorkOrderFormPage() {
|
||||||
const isEdit = !!id;
|
const isEdit = !!id;
|
||||||
|
|
||||||
const [formData, setFormData] = useState({
|
const [formData, setFormData] = useState({
|
||||||
|
internalWONumber: "",
|
||||||
workOrderNumber: "",
|
workOrderNumber: "",
|
||||||
title: "",
|
title: "",
|
||||||
locationId: "",
|
locationId: "",
|
||||||
|
|
@ -21,6 +22,8 @@ export default function WorkOrderFormPage() {
|
||||||
dueDate: "",
|
dueDate: "",
|
||||||
assignedTo: "",
|
assignedTo: "",
|
||||||
description: "",
|
description: "",
|
||||||
|
po: "",
|
||||||
|
tt: "",
|
||||||
});
|
});
|
||||||
|
|
||||||
const [loading, setLoading] = useState(false);
|
const [loading, setLoading] = useState(false);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue