netjsongraph.js icon indicating copy to clipboard operation
netjsongraph.js copied to clipboard

Bug in arrayDeduplication Function with Nested Properties in Test folder in NetjsonWorker file

Open Unnati-Gupta24 opened this issue 1 year ago • 0 comments

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

  1. Call arrayDeduplication with an array of objects that have nested properties.
  2. Use dot notation in the eigenvalues parameter (e.g., ['address.city']).
  3. 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]

Unnati-Gupta24 avatar Oct 04 '24 16:10 Unnati-Gupta24