MemberCount: fix family center crash (#1486)

This commit is contained in:
Hugo C 2023-07-26 02:33:00 +02:00 committed by GitHub
parent 9268cf3ffb
commit 1d77ab0ade
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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"
}
}],