Duplicate track keys in `DaffTreeComponent`
Is this a regression?
- [ ] Yes, this behavior used to work in the previous version
Description
Duplicate track keys in DaffTreeComponent.
The provided track expression resulted in duplicated keys for a given collection. Adjust the tracking expression such that it uniquely identifies all the items in the collection.
trackByTreeElement is resulting in duplicated keys. Using el.title might not be the best since there could be duplicate titles (e.g. Overview)
Environment
- Daffodil version: 0.90
- Angular version: 20
- Browser(s):
- Node version: run
node --version - Operating system:
Steps to reproduce
Steps to reproduce:
- Run a watch on
design(npx nx run @daffodil/design:build --watch) - Run serve
npx ng s daffio - Convert
*ngFor="let node of flatTree; trackBy: trackByTreeElement"to@forexpression - See in console the warnings
Expected behavior
trackByTreeElement should result in all unique keys
Actual behavior
The provided track expression resulted in duplicated keys for a given collection. Adjust the tracking expression such that it uniquely identifies all the items in the collection.
Additional context
No response
Hello @xelaint ! recently discovered this repository , would love to work on this issue. will try fixing this bug within 2-3 days or earlier if assigned.
Cheers, Dibby
@damienwebdev @griest024 @F4tal1t Seems like the update in #4115 did not fix this issue. I'm still seeing the warning in console in my local environment.
@damienwebdev @griest024 @F4tal1t Seems like the update in #4115 did not fix this issue. I'm still seeing the warning in console in my local environment.
hm, node.id should be unique right?
@griest024 I'm seeing it in design-land. Not sure if it a tree component issue or design-land implementation issue.