1
0
Fork 1
mirror of https://github.com/Vendicated/Vencord.git synced 2025-01-25 08:46:25 +00:00

BetterFolders: Fix component erroring

This commit is contained in:
Nuckyz 2024-05-08 17:12:13 -03:00 committed by Luna
parent 0c794e190c
commit c617a663ae

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;
};