mirror of
https://github.com/Sea-Haven-Industries/shoc-frontend-new.git
synced 2026-09-30 17:23:12 +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 [formData, setFormData] = useState({
|
||||
internalWONumber: "",
|
||||
workOrderNumber: "",
|
||||
title: "",
|
||||
locationId: "",
|
||||
|
|
@ -21,6 +22,8 @@ export default function WorkOrderFormPage() {
|
|||
dueDate: "",
|
||||
assignedTo: "",
|
||||
description: "",
|
||||
po: "",
|
||||
tt: "",
|
||||
});
|
||||
|
||||
const [loading, setLoading] = useState(false);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue