Merge pull request #1054 from ONLYOFFICE/bugfix/additional-resources

bugfix/additional-resources
This commit is contained in:
Alexey Safronov 2022-11-18 18:27:02 +03:00 committed by GitHub
commit 9982cae3c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -252,21 +252,23 @@ class ProfileActionsStore {
if (!feedbackAndSupportEnabled) {
const index = actionsArray.findIndex(
(item) => item?.key === "SupportBtn"
(item) => item?.key === "user-menu-support"
);
actionsArray.splice(index, 1);
}
if (!videoGuidesEnabled) {
const index = actionsArray.findIndex((item) => item?.key === "VideoBtn");
const index = actionsArray.findIndex(
(item) => item?.key === "user-menu-video"
);
actionsArray.splice(index, 1);
}
if (!helpCenterEnabled) {
const index = actionsArray.findIndex(
(item) => item?.key === "HelpCenterBtn"
(item) => item?.key === "user-menu-help-center"
);
actionsArray.splice(index, 1);