diff --git a/src/plugins/memberCount.tsx b/src/plugins/memberCount.tsx index 78c10de1..f037d744 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" } }],