Fixing issue with appId being checked when undefined.

This commit is contained in:
Michael Drury 2020-11-03 16:23:28 +00:00
parent 684df38561
commit 016e09eb81
1 changed files with 1 additions and 1 deletions

View File

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