diff --git a/src/pages/routes.js b/src/pages/routes.js index 1969b49..ed0adce 100644 --- a/src/pages/routes.js +++ b/src/pages/routes.js @@ -90,7 +90,7 @@ const getRedirect = (routeObj, urlPath, isLoggedIn) => { */ export const match = (urlPath, isLoggedIn) => { const routeObj = routesDescriptors.find(({ route }) => matchPath(route, urlPath) !== null); - const component = unwrap(routeObj.component); + const component = routeObj && unwrap(routeObj.component); const redirect = getRedirect(routeObj, urlPath, isLoggedIn); const match = matchPath(routeObj.route, urlPath); @@ -157,7 +157,6 @@ export const getLinks = () => { linksCache = { API_BASE, GITHUB_BUGS_URL: 'https://github.com/ReCodEx/SIS-ext-webapp/issues', - LOGIN_EXTERN_FINALIZATION_URI_FACTORY: service => `${URL_PATH_PREFIX}/login-extern/${service}`, }; // Gather links from router descriptors