BetterFolders: Fix component erroring

This commit is contained in:
Nuckyz 2024-05-08 17:12:13 -03:00
parent 449f95500a
commit 6ad17ff7e7
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

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