chore(orders): drop unused attachmentsLoading state from Send PO panel
This commit is contained in:
parent
14e1a12cfe
commit
a6139b7c8a
1 changed files with 3 additions and 2 deletions
|
|
@ -112,9 +112,10 @@ export default function OrderDetailPage({ params }: { params: Promise<{ id: stri
|
|||
// Additional attachments (supplier quote, drawing, NDA, etc.) sent
|
||||
// alongside the PO PDF. PB stores these as file tokens in
|
||||
// `po.additional_attachments`; the modal reads them on open and
|
||||
// writes back via the upload/delete routes.
|
||||
// writes back via the upload/delete routes. `attachmentUploading`
|
||||
// covers both upload and delete — a single "working" flag is
|
||||
// enough for the small panel.
|
||||
const [attachments, setAttachments] = useState<string[]>([]);
|
||||
const [attachmentsLoading, setAttachmentsLoading] = useState(false);
|
||||
const [attachmentUploading, setAttachmentUploading] = useState(false);
|
||||
const [loading, setLoading] = useState(true);
|
||||
const [deleteOpen, setDeleteOpen] = useState(false);
|
||||
|
|
|
|||
Loading…
Reference in a new issue