Browse Source

Fixing issue with appId being checked when undefined.

master
Michael Drury 6 years ago
parent
commit
016e09eb81
  1. 2
      packages/client/src/render/getAppId.js

2
packages/client/src/render/getAppId.js

@ -1,4 +1,4 @@
export const getAppIdFromPath = () => { export const getAppIdFromPath = () => {
let appId = location.pathname.split("/")[1] let appId = location.pathname.split("/")[1]
return appId.startsWith("app_") ? appId : undefined return appId && appId.startsWith("app_") ? appId : undefined
} }

Loading…
Cancel
Save