Skip to content

Commit

Permalink
Remove unused request
Browse files Browse the repository at this point in the history
  • Loading branch information
Tehsurfer committed Jun 16, 2023
1 parent 9c9fca6 commit 64af1fb
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions src/services/flatmapQueries.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,8 @@ let FlatmapQueries = function(){
this.uberons = []
this.urls = []
this.controller = undefined
this.getOrganCuries().then(uberons=>{
this.uberons = uberons
this.createLabelLookup(uberons).then(lookUp=>{
this.lookUp = lookUp
})
})
this.uberons = []
this.lookUp = []
}

this.createTooltipData = function (eventData) {
Expand All @@ -50,16 +46,6 @@ let FlatmapQueries = function(){
return tooltipData
}

this.getOrganCuries = function(){
return new Promise(resolve=> {
fetch(`${this.sparcAPI}get-organ-curies/`)
.then(response=>response.json())
.then(data=>{
resolve(data.uberon.array)
})
})
}

this.createComponentsLabelList = function(components, lookUp){
let labelList = []
components.forEach(n=>{
Expand Down

0 comments on commit 64af1fb

Please sign in to comment.