From 7599a4b8059285c72a851cb1d6b4a2fa93e6ee50 Mon Sep 17 00:00:00 2001
From: Rory Abraham <47436092+roryabraham@users.noreply.github.com>
Date: Mon, 2 Sep 2024 16:46:35 -0700
Subject: [PATCH] Revert "Disable attachment preview until it's uploaded"
---
src/libs/ReportUtils.ts | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/libs/ReportUtils.ts b/src/libs/ReportUtils.ts
index 147ef468f3ccb..1151688ebc0aa 100644
--- a/src/libs/ReportUtils.ts
+++ b/src/libs/ReportUtils.ts
@@ -4049,8 +4049,7 @@ function getUploadingAttachmentHtml(file?: FileObject): string {
// file.type is a known mime type like image/png, image/jpeg, video/mp4 etc.
if (file.type?.startsWith('image')) {
- // optimistic image will have its preview disabled until we receive the (compressed if too big) image from the BE
- return `
`;
+ return `
`;
}
if (file.type?.startsWith('video')) {
return ``;