Skip to content

Commit

Permalink
Merge pull request #1287 from jennydaman/hotfix-mgz-preview
Browse files Browse the repository at this point in the history
Add mgz to fileTypes
  • Loading branch information
jennydaman authored Nov 8, 2024
2 parents 71f90cd + 5eac2b9 commit 7561c69
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/components/Preview/FileDetailView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,20 @@ export interface ActionState {
[key: string]: boolean | string;
}

const fileTypes = ["nii", "dcm", "fsm", "crv", "smoothwm", "pial", "nii.gz"];
/**
* List of file extensions of files which should be loaded from the network
* and given to the viewer component as base64 data instead of as a URI.
*/
const fileTypes = [
"nii",
"dcm",
"fsm",
"crv",
"smoothwm",
"pial",
"nii.gz",
"mgz",
];

const FileDetailView = (props: AllProps) => {
const [tagInfo, setTagInfo] = React.useState<any>();
Expand Down

0 comments on commit 7561c69

Please sign in to comment.