Browse Source

Fixing issue with appId being checked when undefined.

pull/815/head
Michael Drury 6 years ago
parent
commit
b3fbffdfdc
  1. 2
      packages/client/src/render/getAppId.js

2
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
}

Loading…
Cancel
Save