Skip to content

Conversation

@AGHILES667
Copy link

This PR fixes an issue where creating a submenu item would make it appear in multiple parents at once.

There were two causes:

Frontend
New parent items were created with id: '', meaning several parents ended up sharing the same ID.
I replaced this with id: crypto.randomUUID() so each parent gets a proper unique ID.

Backend
Submenu items were being linked to parents using label:

sub_items = [sub_item for sub_item in sub_navbar_items if sub_item.get('columnId') == item.get('label')]

It’s now updated to use the actual parent ID:

sub_items = [sub_item for sub_item in sub_navbar_items if sub_item.get('columnId') == item.get('id')]

Before (Adding 'Child 1' to 'Parent 1' => Duplicated Child 1 and insertion to 'Parent 2' (Bug))
image

After :

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant