From c5aed03123c1774474100467af123d6d8d3a06c8 Mon Sep 17 00:00:00 2001 From: Mirco Wittrien Date: Thu, 19 Oct 2023 12:27:07 +0200 Subject: [PATCH] Update BetterFriendList.plugin.js --- Plugins/BetterFriendList/BetterFriendList.plugin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Plugins/BetterFriendList/BetterFriendList.plugin.js b/Plugins/BetterFriendList/BetterFriendList.plugin.js index b225e2f4c2..70d445df6b 100644 --- a/Plugins/BetterFriendList/BetterFriendList.plugin.js +++ b/Plugins/BetterFriendList/BetterFriendList.plugin.js @@ -2,7 +2,7 @@ * @name BetterFriendList * @author DevilBro * @authorId 278543574059057154 - * @version 1.5.4 + * @version 1.5.5 * @description Adds extra Controls to the Friends Page, for example sort by Name/Status, Search and All/Request/Blocked Amount * @invite Jx3TjNS * @donate https://www.paypal.me/MircoWittrien @@ -219,7 +219,7 @@ module.exports = (_ => { } processTabBar (e) { - if (e.instance.props.children && e.instance.props.children.some(c => c && c.props.id == BDFDB.DiscordConstants.FriendsSections.ADD_FRIEND)) { + if (e.instance.props.children && e.instance.props.children.some(c => c && c.props && c.props.id == BDFDB.DiscordConstants.FriendsSections.ADD_FRIEND)) { currentSection = e.instance.props.selectedItem; isFavoritesSelected = currentSection == favorizedFriendsSection; isHiddenSelected = currentSection == hiddenFriendsSection;