aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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"
}
}],