From 4b654fc81ed46495ef0880ed590206599ddcc784 Mon Sep 17 00:00:00 2001 From: dotta Date: Mon, 6 Apr 2026 21:20:18 -0500 Subject: [PATCH] fix(ui): restore attachment delete state hook order Co-Authored-By: Paperclip --- ui/src/pages/IssueDetail.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/pages/IssueDetail.tsx b/ui/src/pages/IssueDetail.tsx index 49f30139..05fb5af8 100644 --- a/ui/src/pages/IssueDetail.tsx +++ b/ui/src/pages/IssueDetail.tsx @@ -305,6 +305,7 @@ export function IssueDetail() { approvalId: string; action: "approve" | "reject"; } | null>(null); + const [confirmDeleteId, setConfirmDeleteId] = useState(null); const [attachmentError, setAttachmentError] = useState(null); const [attachmentDragActive, setAttachmentDragActive] = useState(false); const [galleryOpen, setGalleryOpen] = useState(false); @@ -1220,7 +1221,6 @@ export function IssueDetail() { const imageAttachments = attachmentList.filter(isImageAttachment); const nonImageAttachments = attachmentList.filter((a) => !isImageAttachment(a)); const hasAttachments = attachmentList.length > 0; - const [confirmDeleteId, setConfirmDeleteId] = useState(null); const attachmentUploadButton = ( <>