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 }