mirror of https://github.com/Budibase/budibase.git
1 changed files with 1 additions and 1 deletions
@ -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