mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 08:58:26 +00:00
PR change: refactored
This commit is contained in:
parent
3734e6fc00
commit
8bb26f27a1
1 changed files with 2 additions and 1 deletions
|
|
@ -120,7 +120,8 @@ export const getWorkspaceIdOrSlugFromURL = () => {
|
|||
};
|
||||
|
||||
export const excludeWorkspaceIdFromURL = (pathname) => {
|
||||
const tempPathname = getSubpath() ? pathname.replace(getSubpath(), '') : pathname;
|
||||
const subPath = getSubpath();
|
||||
const tempPathname = subPath ? pathname.replace(subPath, '') : pathname;
|
||||
if (!['/integrations', '/applications/', '/switch-workspace'].find((path) => tempPathname.startsWith(path))) {
|
||||
pathname = tempPathname;
|
||||
const paths = pathname?.split('/').filter((path) => path !== '');
|
||||
|
|
|
|||
Loading…
Reference in a new issue