From aef231ee32067d6e4b77f354e60842fb6f777418 Mon Sep 17 00:00:00 2001 From: "Taras.Hlukhovetskyi" Date: Thu, 20 Jun 2024 14:27:25 +0300 Subject: [PATCH] Fix [UI] The application crashes when opening a preview of the 105 MB artifact. --- .../ArtifactsPreview/ArtifactsPreviewView.js | 2 +- .../ArtifactsPreview/artifactsPreview.scss | 6 ++ src/utils/getArtifactPreview.js | 85 +++++++++++++------ 3 files changed, 68 insertions(+), 25 deletions(-) diff --git a/src/components/ArtifactsPreview/ArtifactsPreviewView.js b/src/components/ArtifactsPreview/ArtifactsPreviewView.js index 78e550e6a..9a0cacccf 100644 --- a/src/components/ArtifactsPreview/ArtifactsPreviewView.js +++ b/src/components/ArtifactsPreview/ArtifactsPreviewView.js @@ -104,7 +104,7 @@ const ArtifactsPreviewView = ({ className, preview, setShowErrorBody, showErrorB )} - {preview?.type === 'text' &&
{preview?.data.content}
} + {preview?.type === 'text' &&
{preview?.data.content}
} {preview?.type === 'html' && (