From 7a55486b715cd7cdc3ce43a274040a388a1fa1c2 Mon Sep 17 00:00:00 2001 From: gazizova-vlada Date: Wed, 20 Apr 2022 18:29:29 +0300 Subject: [PATCH] Web:Common:Fix location.pathname. --- .../components/Article/sub-components/article-header.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/asc-web-common/components/Article/sub-components/article-header.js b/packages/asc-web-common/components/Article/sub-components/article-header.js index 6a54304bde..aa7f7c579a 100644 --- a/packages/asc-web-common/components/Article/sub-components/article-header.js +++ b/packages/asc-web-common/components/Article/sub-components/article-header.js @@ -27,7 +27,8 @@ const ArticleHeader = ({ const isLoadedSetting = isLoaded; const commonSettings = - location.pathname.includes("common") || location.pathname === "/settings"; + location.pathname.includes("common/customization") || + location.pathname === "/settings"; useEffect(() => { if (isLoadedSetting) setIsLoadedArticleHeader(isLoadedSetting);