mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 09:28:31 +00:00
fix
This commit is contained in:
parent
466cdc4dc5
commit
80b020507c
1 changed files with 3 additions and 1 deletions
|
|
@ -75,7 +75,9 @@ class AppComponent extends React.Component {
|
||||||
'confirm',
|
'confirm',
|
||||||
'confirm-invite',
|
'confirm-invite',
|
||||||
];
|
];
|
||||||
return existedPaths.find((path) => window.location.pathname.includes(path));
|
|
||||||
|
const pathnames = window.location.pathname.split('/')?.filter((path) => path != '');
|
||||||
|
return pathnames?.length > 0 ? existedPaths.find((path) => pathnames[0] === path) : false;
|
||||||
};
|
};
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue