diff --git a/commit/commit/doctype/commit_docs/commit_docs.py b/commit/commit/doctype/commit_docs/commit_docs.py index 0168b4a..bac3dd7 100644 --- a/commit/commit/doctype/commit_docs/commit_docs.py +++ b/commit/commit/doctype/commit_docs/commit_docs.py @@ -456,7 +456,7 @@ def manage_navbar(commit_doc:str, navbar_items, sub_navbar_items=None): }) if sub_navbar_items: # find the task in the sub_navbar_items where columnId is equal to item.get('label') - sub_items = [sub_item for sub_item in sub_navbar_items if sub_item.get('columnId') == item.get('label')] + sub_items = [sub_item for sub_item in sub_navbar_items if sub_item.get('columnId') == item.get('id')] # sort the sub_items by index field sub_items = sorted(sub_items, key=lambda x: x.get('index', 0)) # Loop Over the Sub Items diff --git a/dashboard/src/pages/features/docs/Navbar/NavbarBoard.tsx b/dashboard/src/pages/features/docs/Navbar/NavbarBoard.tsx index 26bcf51..466bab2 100644 --- a/dashboard/src/pages/features/docs/Navbar/NavbarBoard.tsx +++ b/dashboard/src/pages/features/docs/Navbar/NavbarBoard.tsx @@ -358,7 +358,7 @@ const CreateNewParentLabel = ({ onColumnCreate, onClose, open }: CreateParentLab if (!prev) { // Initialize the column object if it's null return { - id: '', // Provide a default value for required fields + id: crypto.randomUUID(), // Generate a unique ID type: 'Button', // Default type label: '', url: '',