Skip to content

Commit f5e9cb1

Browse files
committed
CIDC-1278 don't replace assays with metadata
1 parent 3fc32e2 commit f5e9cb1

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ This Changelog tracks changes to this project. The notes below include a summary
99
- `fixed` for any bug fixes.
1010
- `security` in case of vulnerabilities.
1111

12+
## 14 Sep 2022
13+
14+
- `changed` template download button to point to /templates/assays not /templates/metadata
15+
1216
## 11 Aug 2022
1317

1418
- `changed` clinical data NOT included in cross-assay permissions

src/components/generic/TemplateDownloadButton.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ export function nameToURL(
99
name: string
1010
) {
1111
const fmtedName = name.toLowerCase().replace(" ", "_");
12-
// Assay templates have type "metadata" on the server
13-
const fixedType = type === "assays" ? "metadata" : type;
14-
return `${process.env.REACT_APP_API_URL}/info/templates/${fixedType}/${fmtedName}`;
12+
return `${process.env.REACT_APP_API_URL}/info/templates/${type}/${fmtedName}`;
1513
}
1614

1715
export interface ITemplateDownloadButtonProps extends ButtonProps {

0 commit comments

Comments
 (0)