Skip to content

Commit

Permalink
Download archive as zip instead of tar in resource container
Browse files Browse the repository at this point in the history
Signed-off-by: Dinika Saxena <[email protected]>
  • Loading branch information
Dinika committed Mar 20, 2024
1 parent 310b551 commit a1f524e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/shared/components/Preview/Preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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-]+)\/(.*)/;
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit a1f524e

Please sign in to comment.