aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHugo C <lumap@duck.com>2023-07-26 02:33:00 +0200
committerGitHub <noreply@github.com>2023-07-26 00:33:00 +0000
commit1d77ab0adec64e33f48f0de38ab50198b1772e6a (patch)
treec783d1c1492b7072e0e1fcec4b2c2d7171db6f8c /src
parent9268cf3ffb81e53bae01138634f93ec738d72bbb (diff)
downloadVencord-1d77ab0adec64e33f48f0de38ab50198b1772e6a.tar.gz
Vencord-1d77ab0adec64e33f48f0de38ab50198b1772e6a.tar.bz2
Vencord-1d77ab0adec64e33f48f0de38ab50198b1772e6a.zip
MemberCount: fix family center crash (#1486)
Diffstat (limited to 'src')
-rw-r--r--src/plugins/memberCount.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/memberCount.tsx b/src/plugins/memberCount.tsx
index 78c10de..f037d74 100644
--- a/src/plugins/memberCount.tsx
+++ b/src/plugins/memberCount.tsx
@@ -106,7 +106,7 @@ export default definePlugin({
find: ".isSidebarVisible,",
replacement: {
match: /(var (\i)=\i\.className.+?children):\[(\i\.useMemo[^}]+"aria-multiselectable")/,
- replace: "$1:[$2.startsWith('members')?$self.render():null,$3"
+ replace: "$1:[$2?.startsWith('members')?$self.render():null,$3"
}
}],