TypeError: Cannot read property 'courses' of undefined at StudyPage.render (/var/www/tentamentrainingen_production/deploy-2019-09-13_09_24_54/resources/assets/react/pages/StudyPage.cjsx:137:31) at StudyPage.render (/var/www/tentamentrainingen_production/deploy-2019-09-13_09_24_54/resources/assets/react/pages/StudyPage.cjsx:2:57) at ReactCompositeComponentWrapper._renderValidatedComponentWithoutOwnerOrContext (/var/www/tentamentrainingen_production/deploy-2019-09-13_09_24_54/node_modules/react-dom/lib/ReactCompositeComponent.js:799:30) at ReactCompositeComponentWrapper._renderValidatedComponent (/var/www/tentamentrainingen_production/deploy-2019-09-13_09_24_54/node_modules/react-dom/lib/ReactCompositeComponent.js:822:32) at ReactCompositeComponentWrapper.performInitialMount (/var/www/tentamentrainingen_production/deploy-2019-09-13_09_24_54/node_modules/react-dom/lib/ReactCompositeComponent.js:362:30) at ReactCompositeComponentWrapper.mountComponent (/var/www/tentamentrainingen_production/deploy-2019-09-13_09_24_54/node_modules/react-dom/lib/ReactCompositeComponent.js:258:21) at Object.mountComponent (/var/www/tentamentrainingen_production/deploy-2019-09-13_09_24_54/node_modules/react-dom/lib/ReactReconciler.js:46:35) at ReactDOMComponent.mountChildren (/var/www/tentamentrainingen_production/deploy-2019-09-13_09_24_54/node_modules/react-dom/lib/ReactMultiChild.js:238:44) at ReactDOMComponent._createContentMarkup (/var/www/tentamentrainingen_production/deploy-2019-09-13_09_24_54/node_modules/react-dom/lib/ReactDOMComponent.js:653:32) at ReactDOMComponent.mountComponent (/var/www/tentamentrainingen_production/deploy-2019-09-13_09_24_54/node_modules/react-dom/lib/ReactDOMComponent.js:520:29) at Object.mountComponent (/var/www/tentamentrainingen_production/deploy-2019-09-13_09_24_54/node_modules/react-dom/lib/ReactReconciler.js:46:35) at ReactDOMComponent.mountChildren (/var/www/tentamentrainingen_production/deploy-2019-09-13_09_24_54/node_modules/react-dom/lib/ReactMultiChild.js:238:44) at ReactDOMComponent._createContentMarkup (/var/www/tentamentrainingen_production/deploy-2019-09-13_09_24_54/node_modules/react-dom/lib/ReactDOMComponent.js:653:32) at ReactDOMComponent.mountComponent (/var/www/tentamentrainingen_production/deploy-2019-09-13_09_24_54/node_modules/react-dom/lib/ReactDOMComponent.js:520:29) at Object.mountComponent (/var/www/tentamentrainingen_production/deploy-2019-09-13_09_24_54/node_modules/react-dom/lib/ReactReconciler.js:46:35) at ReactCompositeComponentWrapper.performInitialMount (/var/www/tentamentrainingen_production/deploy-2019-09-13_09_24_54/node_modules/react-dom/lib/ReactCompositeComponent.js:371:34) at ReactCompositeComponentWrapper.mountComponent (/var/www/tentamentrainingen_production/deploy-2019-09-13_09_24_54/node_modules/react-dom/lib/ReactCompositeComponent.js:258:21) at Object.mountComponent (/var/www/tentamentrainingen_production/deploy-2019-09-13_09_24_54/node_modules/react-dom/lib/ReactReconciler.js:46:35) at /var/www/tentamentrainingen_production/deploy-2019-09-13_09_24_54/node_modules/react-dom/lib/ReactServerRendering.js:45:36 at ReactServerRenderingTransaction.perform (/var/www/tentamentrainingen_production/deploy-2019-09-13_09_24_54/node_modules/react-dom/lib/Transaction.js:140:20) at renderToStringImpl (/var/www/tentamentrainingen_production/deploy-2019-09-13_09_24_54/node_modules/react-dom/lib/ReactServerRendering.js:43:24) at renderToString (/var/www/tentamentrainingen_production/deploy-2019-09-13_09_24_54/node_modules/react-dom/lib/ReactServerRendering.js:73:10) at handleRender (/var/www/tentamentrainingen_production/deploy-2019-09-13_09_24_54/resources/scripts/server.js:44:20) at Layer.handle [as handle_request] (/var/www/tentamentrainingen_production/deploy-2019-09-13_09_24_54/node_modules/express/lib/router/layer.js:95:5) at next (/var/www/tentamentrainingen_production/deploy-2019-09-13_09_24_54/node_modules/express/lib/router/route.js:137:13) at Route.dispatch (/var/www/tentamentrainingen_production/deploy-2019-09-13_09_24_54/node_modules/express/lib/router/route.js:112:3) at Layer.handle [as handle_request] (/var/www/tentamentrainingen_production/deploy-2019-09-13_09_24_54/node_modules/express/lib/router/layer.js:95:5) at /var/www/tentamentrainingen_production/deploy-2019-09-13_09_24_54/node_modules/express/lib/router/index.js:281:22 at Function.process_params (/var/www/tentamentrainingen_production/deploy-2019-09-13_09_24_54/node_modules/express/lib/router/index.js:335:12) at next (/var/www/tentamentrainingen_production/deploy-2019-09-13_09_24_54/node_modules/express/lib/router/index.js:275:10) at /var/www/tentamentrainingen_production/deploy-2019-09-13_09_24_54/node_modules/body-parser/lib/read.js:130:5 at invokeCallback (/var/www/tentamentrainingen_production/deploy-2019-09-13_09_24_54/node_modules/raw-body/index.js:224:16) at done (/var/www/tentamentrainingen_production/deploy-2019-09-13_09_24_54/node_modules/raw-body/index.js:213:7) at IncomingMessage.onEnd (/var/www/tentamentrainingen_production/deploy-2019-09-13_09_24_54/node_modules/raw-body/index.js:273:7) at emitNone (events.js:86:13) at IncomingMessage.emit (events.js:188:7) at endReadableNT (_stream_readable.js:975:12) at _combinedTickCallback (internal/process/next_tick.js:80:11) at process._tickCallback (internal/process/next_tick.js:104:9)