Properly pass dependencies into hierarchy component.

Bug: 329262799
Test: npm run test:unit:ci
Change-Id: I9f2884692a853a61f5b3a67b5231f0d61222abd3
6 files changed