diff --git a/src/components/Attachments/AttachmentCarousel/index.tsx b/src/components/Attachments/AttachmentCarousel/index.tsx index 42536ae208ae1..e437498d59472 100644 --- a/src/components/Attachments/AttachmentCarousel/index.tsx +++ b/src/components/Attachments/AttachmentCarousel/index.tsx @@ -51,6 +51,10 @@ function AttachmentCarousel({report, reportActions, parentReportActions, source, const attachmentsFromReport = extractAttachmentsFromReport(parentReportAction, reportActions ?? undefined); if (isEqual(attachments, attachmentsFromReport)) { + if (attachments.length === 0) { + setPage(-1); + setDownloadButtonVisibility?.(false); + } return; }