Web:Studio:Fix location.pathname.

This commit is contained in:
Vlada Gazizova 2022-04-20 18:29:13 +03:00
parent 49e50093bc
commit 03f24dacac
2 changed files with 4 additions and 2 deletions

View File

@ -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;

View File

@ -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}>