From a1f524e0d47680e7f742d73ea99fa8125abc5c2b Mon Sep 17 00:00:00 2001 From: Dinika Saxena Date: Wed, 20 Mar 2024 10:20:17 +0100 Subject: [PATCH] Download archive as zip instead of tar in resource container Signed-off-by: Dinika Saxena --- src/shared/components/Preview/Preview.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/shared/components/Preview/Preview.tsx b/src/shared/components/Preview/Preview.tsx index 24ad924fa..6ae1e88b9 100644 --- a/src/shared/components/Preview/Preview.tsx +++ b/src/shared/components/Preview/Preview.tsx @@ -16,6 +16,7 @@ import TableViewerContainer from '../../containers/TableViewerContainer'; import { useSelector } from 'react-redux'; import { RootState } from '../../store/reducers'; import nexusUrlHardEncode from '../../utils/nexusEncode'; +import * as Sentry from '@sentry/browser'; export const parseResourceId = (url: string) => { const fileUrlPattern = /files\/([\w-]+)\/([\w-]+)\/(.*)/; @@ -184,6 +185,7 @@ const Preview: React.FC<{ message: `Archive ${archiveName} downloaded successfully`, }); } catch (error) { + Sentry.captureException({ error, message: 'Failed to download archive' }); notification.error({ message: 'Failed to download the file', description: error.reason || error.message,