lvlup-pro / spawn-frontend-material

Customer panel frontend for https://api.lvlup.pro
MIT License
7 stars 7 forks source link

On fresh log in app crashes preventing loading services page #26

Closed SystemZ closed 7 years ago

SystemZ commented 7 years ago
[Vue warn]: Error when rendering anonymous component at /usr/src/app/src/views/Services.vue: 
warn @ vue.runtime.common.js:521
Vue._render @ vue.runtime.common.js:2223
updateComponent @ vue.runtime.common.js:2609
get @ vue.runtime.common.js:2934
Watcher @ vue.runtime.common.js:2926
Vue._mount @ vue.runtime.common.js:2608
Vue$2.$mount @ vue.runtime.common.js:6178
init @ vue.runtime.common.js:1740
(anonymous) @ vue.runtime.common.js:1894
createComponent @ vue.runtime.common.js:4174
createElm @ vue.runtime.common.js:4117
patch @ vue.runtime.common.js:4605
Vue._update @ vue.runtime.common.js:2642
updateComponent @ vue.runtime.common.js:2609
get @ vue.runtime.common.js:2934
run @ vue.runtime.common.js:3003
flushSchedulerQueue @ vue.runtime.common.js:2807
(anonymous) @ vue.runtime.common.js:473
nextTickHandler @ vue.runtime.common.js:422
vue.runtime.common.js:435 TypeError: Cannot read property 'total_pages' of undefined
    at Proxy.render (Services.vue?1fff:18)
    at VueComponent.Vue._render (vue.runtime.common.js:2216)
    at VueComponent.updateComponent (vue.runtime.common.js:2609)
    at Watcher.get (vue.runtime.common.js:2934)
    at new Watcher (vue.runtime.common.js:2926)
    at VueComponent.Vue._mount (vue.runtime.common.js:2608)
    at VueComponent.Vue$2.$mount (vue.runtime.common.js:6178)
    at init (vue.runtime.common.js:1740)
    at vue.runtime.common.js:1894
    at createComponent (vue.runtime.common.js:4174)
SystemZ commented 7 years ago

This happens on logout when on services page too. When I commented out pagination on services it's ok.

Strangly, similar pagination is on help page too and it's not bugging.

SystemZ commented 7 years ago

Redirect to services after logging it's not affecting this.

Something is wrong with services page, switching to it after login and redirect to help page crashes app again.