Fix FakeNitro loading

This commit is contained in:
T14D3 2025-02-19 08:17:12 +01:00
parent 1f67203183
commit 77ecaf755c
No known key found for this signature in database
GPG key ID: 891A9C5F123E4EF4

View file

@ -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);