Web:Studio:Fix location.pathname.
This commit is contained in:
parent
49e50093bc
commit
03f24dacac
@ -156,7 +156,8 @@ class ArticleBodyContent extends React.Component {
|
||||
const { isLoadedPage, location } = this.props;
|
||||
|
||||
const commonSettings =
|
||||
location.pathname.includes("common") || location.pathname === "/settings";
|
||||
location.pathname.includes("common/customization") ||
|
||||
location.pathname === "/settings";
|
||||
|
||||
const showLoader = commonSettings ? !isLoadedPage : false;
|
||||
|
||||
|
@ -251,7 +251,8 @@ class SectionHeaderContent extends React.Component {
|
||||
];
|
||||
|
||||
const commonSettings =
|
||||
location.pathname.includes("common") || location.pathname === "/settings";
|
||||
location.pathname.includes("common/customization") ||
|
||||
location.pathname === "/settings";
|
||||
const showLoader = commonSettings ? !isLoadedPage : false;
|
||||
return (
|
||||
<StyledContainer isHeaderVisible={isHeaderVisible}>
|
||||
|
Loading…
Reference in New Issue
Block a user