1
0
Fork 0

[FIX]: Undefined var errors

This commit is contained in:
sharpshark28 2017-08-11 20:42:50 -05:00
parent 5c7e0adabb
commit 52f7a2eed2
2 changed files with 7 additions and 5 deletions

View file

@ -24,13 +24,13 @@
>{{state.chosen.length}}</span>
</q-tab>
<q-tab
hidden="true"
hidden
route="/spell"
>
Spell
</q-tab>
<q-tab
hidden="true"
hidden
route="/about"
>
About

View file

@ -34,9 +34,11 @@ export default {
},
props: [ 'spells' ],
mounted () {
if (this.state.lastSpell) {
let lastSpellPosition = this.$refs[this.state.lastSpell][0].$el.offsetTop
let scrollingPageElement = document.getElementsByClassName('layout-view')[0]
scrollingPageElement.scrollTop = lastSpellPosition
}
},
computed: {
filteredSpells () {