diff --git a/components/report_cards/shared/CrystalStructures/PDBeRepresentativeStructure.vue b/components/report_cards/shared/CrystalStructures/PDBeRepresentativeStructure.vue index fa3bfbe04d231130a268d0b71ba34f2590c340e7..fb0e3d246a67a98a6d457396e3e553a28fdfa900 100644 --- a/components/report_cards/shared/CrystalStructures/PDBeRepresentativeStructure.vue +++ b/components/report_cards/shared/CrystalStructures/PDBeRepresentativeStructure.vue @@ -86,13 +86,12 @@ export default { }, methods: { loadData() { - const requestURL = `https://www.ebi.ac.uk/pdbe/graph-api/mappings/best_structures/O76074` - console.log('requestURL: ', requestURL) + const requestURL = `https://www.ebi.ac.uk/pdbe/graph-api/mappings/best_structures/${this.uniProtAccession}` axios .get(requestURL) .then((response) => { - const structures = response.data.O76074 + const structures = response.data[this.uniProtAccession] // Just get the first structure for now if (structures.length === 0) {