Skip to content

Commit 15fc452

Browse files
committed
Avoid potential infinite request loop from snv table.
1 parent 8a31352 commit 15fc452

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bravue",
3-
"version": "0.21.0",
3+
"version": "0.21.1",
44
"private": true,
55
"scripts": {
66
"serve": "vue-cli-service serve",

src/components/GeneDashboard.vue

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -367,16 +367,17 @@ export default {
367367
.catch(error => { console.log("Error loading SuSiE count:" + error) })
368368
},
369369
},
370+
beforeMount: function() {
371+
// Respect links to specific tab
372+
if(window.location.hash === "#eqtl"){
373+
this.toggleTab("eqtl")
374+
}
375+
},
370376
mounted: function() {
371377
this.loadGene()
372378
373379
this.childWidth = this.$el.clientWidth
374380
window.addEventListener('resize', this.handleResize)
375-
376-
// Respect links to specific tab
377-
if(window.location.hash === "#eqtl"){
378-
this.toggleTab("eqtl")
379-
}
380381
},
381382
beforeUnmount: function() {
382383
window.removeEventListener('resize', this.handleResize)

src/components/RegionDashboard.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -323,12 +323,14 @@ export default {
323323
this.hoveredVarPosition = data.pos
324324
},
325325
},
326-
mounted: function() {
327-
this.load_eqtl_count()
328-
326+
beforeMount: function() {
327+
console.log("before mount")
329328
// Respect links to specific tab
330329
if(window.location.hash === "#eqtl"){ this.toggleTab("eqtl") }
331330
},
331+
mounted: function() {
332+
this.load_eqtl_count()
333+
},
332334
beforeUnmount: function() {
333335
window.removeEventListener('resize', this.handleResize)
334336
}

0 commit comments

Comments
 (0)