Merge pull request #33444 from s-aga-r/fix/github-issue/28766

fix: consider child nodes while getting bin details