From e79a16cc8a54fc2bf31c27b974e6041dbd0e650e Mon Sep 17 00:00:00 2001 From: Akmal Isomadinov Date: Fri, 27 Jan 2023 22:08:09 +0500 Subject: [PATCH] Web:Client:Components:Article:Body Fixed closing article on mobile phone --- packages/client/src/components/Article/Body/index.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/packages/client/src/components/Article/Body/index.js b/packages/client/src/components/Article/Body/index.js index 7f4c2170ac..b50e20a3cf 100644 --- a/packages/client/src/components/Article/Body/index.js +++ b/packages/client/src/components/Article/Body/index.js @@ -105,9 +105,6 @@ const ArticleBodyContent = (props) => { ); }) .finally(() => { - if (isMobileOnly || isMobile()) { - toggleArticleOpen(); - } if (filesSection) { setIsLoading(false); } else { @@ -139,9 +136,6 @@ const ArticleBodyContent = (props) => { }) .catch((err) => toastr.error(err)) .finally(() => { - if (isMobileOnly || isMobile()) { - toggleArticleOpen(); - } if (filesSection) { setIsLoading(false); } else { @@ -149,6 +143,10 @@ const ArticleBodyContent = (props) => { } }); } + + if (isMobileOnly || isMobile()) { + toggleArticleOpen(); + } }, [categoryType, roomsFolderId, archiveFolderId] );