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