Skip to content

Commit

Permalink
Make sure to set all children to null
Browse files Browse the repository at this point in the history
Signed-off-by: Suresh Kumar Gangumalla <[email protected]>
  • Loading branch information
suresh-gangumalla committed Apr 17, 2024
1 parent 4fc928c commit e1ad4b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/setup/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,8 @@ const deleteChildren = function (children) {
Object.keys(children[i]).forEach((k) => {
if (children[i][k].destroy) {
children[i][k].destroy()
children[i][k] = null
}
children[i][k] = null
})
} else if (children[i].destroy) {
children[i].destroy()
Expand Down

0 comments on commit e1ad4b3

Please sign in to comment.