From cd85e61cdf9185896c947da2799cbaa1463e4576 Mon Sep 17 00:00:00 2001
From: David Mendez <dmendez@ebi.ac.uk>
Date: Tue, 24 Aug 2021 11:41:08 +0100
Subject: [PATCH] remove hardcoded value

---
 .../shared/CrystalStructures/PDBeRepresentativeStructure.vue | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/components/report_cards/shared/CrystalStructures/PDBeRepresentativeStructure.vue b/components/report_cards/shared/CrystalStructures/PDBeRepresentativeStructure.vue
index fa3bfbe..fb0e3d2 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) {
-- 
GitLab