Skip to content

Commit

Permalink
fix(sidebar): resolved sidebar hash URL navigation issue (#1116)
Browse files Browse the repository at this point in the history
Co-authored-by: Aditya Patil - Parallel Minds <[email protected]>
  • Loading branch information
Aditya0732 and Aditya0733 authored Dec 9, 2024
1 parent baa8a96 commit 42bb467
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/src/containers/Sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const Sidebar: React.FunctionComponent = () => {
<li key={`menu-message-list-${message.name() ?? index}`}>
<a
className="flex break-words no-underline text-gray-700 mt-2 hover:text-gray-900"
href={`#message-${message.name()}`}
href={`#message-${message.name() ?? message.id()}`}
onClick={() => setShowSidebar(false)}
>
<div className="break-all inline-block">{message.id()}</div>
Expand Down

0 comments on commit 42bb467

Please sign in to comment.