Skip to content

Commit ed08faf

Browse files
committed
fix(web): ignore held approvals when blocking sends on uploads
1 parent d180f9e commit ed08faf

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎apps/web/src/components/chat/ChatComposer.tsx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,8 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps)
759759
? "Attach the interrupted file again or remove it"
760760
: "Attach the interrupted files again or remove them"
761761
: // A plain send waits for its uploads. Answers and approval redirects need them first.
762-
questionAttachmentTarget || pendingApprovals.length > 0
762+
questionAttachmentTarget ||
763+
pendingApprovals.some((approval) => !heldRequestIds.has(approval.requestId))
763764
? attachmentUploadBlockReason({
764765
imageIds: [...composerImages, ...composerFiles].map((attachment) => attachment.id),
765766
uploadsByImageId,

0 commit comments

Comments
 (0)