Subscription routing is broken
Summary
Sometimes, especially when redirecting to the /ended route, the SubscriptionWorkPage component's routing functionality is broken. When the error occurs, the user can't click anything. The only way to get out is to close the tab or manually navigate to the home route by changing the url in the browser.
Steps to reproduce
No reliable way to reproduce. However, the errors suggest that the user is routed to the wrong url.
What is the current bug behavior?
The whole page freezes and the user is not redirected as expected.
What is the expected correct behavior?
The user should be redirected to the correct submission or the SubscriptionEnded component.
Relevant logs and/or screenshots
Firefox Error Log:
[Vue warn]: Error in render: "TypeError: this.currentAssignment is undefined"
found in
---> <SubscriptionWorkPage> at src/pages/SubscriptionWorkPage.vue
<VContent>
<LayoutSelector> at src/pages/LayoutSelector.vue
<VApp>
<App> at src/App.vue
<Root> vue.runtime.esm.js:601
TypeError: "this.currentAssignment is undefined"
submission SubscriptionWorkPage.vue:72 get4VueJS
render SubscriptionWorkPage.vue:24 Render47VueJS
vue.runtime.esm.js:1832
[Vue warn]: Error in render: "TypeError: this.currentAssignment is undefined"
found in
---> <SubscriptionWorkPage> at src/pages/SubscriptionWorkPage.vue
<VContent>
<LayoutSelector> at src/pages/LayoutSelector.vue
<VApp>
<App> at src/App.vue
<Root> vue.runtime.esm.js:601
warn11VueJS
TypeError: "this.currentAssignment is undefined"
submission SubscriptionWorkPage.vue:72 get4VueJS
render SubscriptionWorkPage.vue:24 Render7VueJS
vue.runtime.esm.js:1832
[Vue warn]: Error in render: "TypeError: this.currentAssignment is undefined"
found in
---> <SubscriptionWorkPage> at src/pages/SubscriptionWorkPage.vue
<VContent>
<LayoutSelector> at src/pages/LayoutSelector.vue
<VApp>
<App> at src/App.vue
<Root> vue.runtime.esm.js:601
warn11VueJS
TypeError: "this.currentAssignment is undefined"
submission SubscriptionWorkPage.vue:72 get4VueJS
render SubscriptionWorkPage.vue:24 Render7VueJS
vue.runtime.esm.js:1832
logError10VueJS
Possible fixes
Refactor the routing functionality of the SubscriptionWorkPage component
Edited by robinwilliam.hundt