diff --git a/frontend/components/Viewing/PageJSON/Rendering/SectionRenderer.js b/frontend/components/Viewing/PageJSON/Rendering/SectionRenderer.js
index 25834a90..0923c4ac 100644
--- a/frontend/components/Viewing/PageJSON/Rendering/SectionRenderer.js
+++ b/frontend/components/Viewing/PageJSON/Rendering/SectionRenderer.js
@@ -80,7 +80,6 @@ export default function SectionRenderer({ section, metadata }) {
}
})
}
- console.log(section.text);
if (/SO:\s*(\d{7})/.test(section.text)) {
for (let key in sequenceOntology) {
if (section.text === key) {
@@ -145,7 +144,7 @@ export default function SectionRenderer({ section, metadata }) {
}
return (
- {section.id === "Sequence" && section.link == null ? (
+ {section.id === "Sequence" && !section.link ? (
section.text.map((line, index) => (
))
- ) : section.link ? (
+ ) : typeof section.link === 'string' ? (
);
+
} else {
return
Loading...
diff --git a/frontend/components/Viewing/PageJSON/Types/Attachment3.json b/frontend/components/Viewing/PageJSON/Types/Attachment3.json
index 7231b44e..7825e190 100644
--- a/frontend/components/Viewing/PageJSON/Types/Attachment3.json
+++ b/frontend/components/Viewing/PageJSON/Types/Attachment3.json
@@ -21,7 +21,12 @@
"title": "Extra Work",
"stripAfter": "#",
"predicates": [],
- "link": "$"
+ "link": "$"
+ },
+ {
+ "title": "sourceLink",
+ "predicates": [],
+ "hide": true
}
]
},
@@ -33,7 +38,13 @@
{
"title": "Extra Work",
"stripAfter": "#",
- "predicates": []
+ "predicates": [],
+ "link": "$"
+ },
+ {
+ "title": "formatLink",
+ "predicates": [],
+ "hide": true
}
]
},
| |