Web:Client:Article: fix warning

This commit is contained in:
TimofeyBoyko 2022-11-11 15:42:06 +03:00
parent a4a07fcad1
commit 7fb4517fca

View File

@ -402,7 +402,10 @@ const ArticleMainButtonContent = (props) => {
onUploadFolderClick,
]);
const canInvite = isAccountsPage && selectedTreeNode[1] === "filter";
const canInvite =
isAccountsPage &&
selectedTreeNode.length > 1 &&
selectedTreeNode[1] === "filter";
const mainButtonText = isAccountsPage
? t("Common:Invite")
: t("Common:Actions");