BetterFolders: Fix component erroring

main
Nuckyz 6 months ago
parent 449f95500a
commit 6ad17ff7e7
No known key found for this signature in database
GPG Key ID: 440BF8296E1C4AD9

@ -279,7 +279,7 @@ export default definePlugin({
makeGuildsBarTreeFilter(isBetterFolders: boolean) { makeGuildsBarTreeFilter(isBetterFolders: boolean) {
return child => { return child => {
if (isBetterFolders) { if (isBetterFolders) {
return "onScroll" in child.props; return child?.props?.onScroll != null;
} }
return true; return true;
}; };

Loading…
Cancel
Save