chore(orders): drop unused attachmentsLoading state from Send PO panel

This commit is contained in:
SJCoetz 2026-07-09 23:34:51 +02:00
parent 14e1a12cfe
commit a6139b7c8a

View file

@ -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);