-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
back: Enhance Unique Path Calculation in Search Component.
Refactored the formatNames function in Search.jsx to handle cases where regions with the same name appear under different parent regions or within nested structures. The updated logic includes grouping paths by the last element (region name), finding the common prefix for each group of paths, and then determining the shortest unique suffix for each region. This approach ensures that each region is uniquely identifiable, especially in scenarios where regions share the same name. Issue: #172 Signed-off-by: Nikolay Martyanov <[email protected]>
- Loading branch information
1 parent
0412573
commit 77d3f1f
Showing
1 changed file
with
36 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters