From 016e09eb818213f27b3688160502d900ce53be11 Mon Sep 17 00:00:00 2001 From: Michael Drury Date: Tue, 3 Nov 2020 16:23:28 +0000 Subject: [PATCH] Fixing issue with appId being checked when undefined. --- packages/client/src/render/getAppId.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/render/getAppId.js b/packages/client/src/render/getAppId.js index 7da86a802d..8356f7b25c 100644 --- a/packages/client/src/render/getAppId.js +++ b/packages/client/src/render/getAppId.js @@ -1,4 +1,4 @@ export const getAppIdFromPath = () => { let appId = location.pathname.split("/")[1] - return appId.startsWith("app_") ? appId : undefined + return appId && appId.startsWith("app_") ? appId : undefined }