netjsongraph.js
netjsongraph.js copied to clipboard
Bug in arrayDeduplication Function with Nested Properties in Test folder in NetjsonWorker file
Describe the bug There seems to be an issue with the arrayDeduplication function when using nested properties for deduplication. The function does not correctly handle cases where the properties are deeply nested, leading to unexpected results.
Steps To Reproduce
- Call arrayDeduplication with an array of objects that have nested properties.
- Use dot notation in the eigenvalues parameter (e.g., ['address.city']).
- Observe that the function does not return the expected deduplicated array.
Expected behavior The function should correctly deduplicate items based on nested properties specified in dot notation.
Actual Behavior: The function fails to recognize nested properties, resulting in incorrect deduplication.
Screenshots If applicable, add screenshots to help explain your problem.
System Informatioon:
- OS: [e.g. Ubuntu 24.04 LTS]
- Node.js Version: [e.g. Node.js 18.16.1]
- Browser and Browser Version (if applicable): [e.g. Chromium v126.0.6478.126]