mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-02-23 23:15:10 +00:00
Fix FakeNitro loading
This commit is contained in:
parent
1f67203183
commit
77ecaf755c
1 changed files with 3 additions and 1 deletions
|
@ -605,7 +605,9 @@ export default definePlugin({
|
|||
};
|
||||
|
||||
const modifyChildren = (children: Array<ReactElement<any>>) => {
|
||||
for (const [index, child] of children.entries()) children[index] = modifyChild(child);
|
||||
if (children.length !== 0) {
|
||||
for (const [index, child] of children.entries()) children[index] = modifyChild(child);
|
||||
}
|
||||
|
||||
children = this.clearEmptyArrayItems(children);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue