Fixing issue with appId being checked when undefined.
This commit is contained in:
parent
684df38561
commit
016e09eb81
|
@ -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…
Reference in New Issue