Skip to content
Snippets Groups Projects
Commit cd85e61c authored by David Mendez's avatar David Mendez
Browse files

remove hardcoded value

parent d99c99ec
No related branches found
No related tags found
1 merge request!16Add PBDe Molstar visualisations for compounds and targets
......@@ -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) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment