diff --git a/src/app/(app)/orders/[id]/page.tsx b/src/app/(app)/orders/[id]/page.tsx index afb5a25..3c653dd 100644 --- a/src/app/(app)/orders/[id]/page.tsx +++ b/src/app/(app)/orders/[id]/page.tsx @@ -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([]); - const [attachmentsLoading, setAttachmentsLoading] = useState(false); const [attachmentUploading, setAttachmentUploading] = useState(false); const [loading, setLoading] = useState(true); const [deleteOpen, setDeleteOpen] = useState(false);