unneeded flatmap

This commit is contained in:
Peter Clement 2025-01-30 16:12:12 +00:00
parent 6d22718e07
commit e9bf78abe0
1 changed files with 6 additions and 6 deletions

View File

@ -119,12 +119,12 @@
})
if (component._children) {
foundComponents = [
...foundComponents,
...component._children.flatMap(child =>
findComponentsUpdatingState(child, stateKey)
),
]
for (let child of component._children) {
foundComponents = [
...foundComponents,
...findComponentsUpdatingState(child, stateKey),
]
}
}
return foundComponents