From 09bd7da1dbd37f619af057afa873451d13421296 Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Thu, 19 Nov 2020 17:09:56 +0000 Subject: [PATCH] add optional chain back in --- packages/client/src/render/screenRouter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/render/screenRouter.js b/packages/client/src/render/screenRouter.js index 784cada80d..d214fa8f21 100644 --- a/packages/client/src/render/screenRouter.js +++ b/packages/client/src/render/screenRouter.js @@ -43,7 +43,7 @@ export const screenRouter = ({ screens, onScreenSelected, window }) => { return sanitize(url) } - const routes = screens.map(screen => makeRootedPath(screen.routing.route)) + const routes = screens.map(screen => makeRootedPath(screen?.routing.route)) let fallback = routes.findIndex(([p]) => p === makeRootedPath("*")) if (fallback < 0) fallback = 0