Web:Client:Components:Article:Body Fixed closing article on mobile phone

This commit is contained in:
Akmal Isomadinov 2023-01-27 22:08:09 +05:00
parent 5fd084a1b6
commit e79a16cc8a

View File

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