Skip to content

Commit

Permalink
fix: link to the full queue name.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixmosh committed Jan 5, 2025
1 parent 2bdb7af commit 58475e0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion packages/ui/src/components/Menu/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function QueueTree({ tree }: { tree: AppQueueTreeNode }) {
return isLeafNode ? (
<div key={node.name} className={s.menu}>
<NavLink
to={links.queuePage(node.name, selectedStatuses)}
to={links.queuePage(node.queue!.name, selectedStatuses)}
activeClassName={s.active}
title={node.name}
>
Expand Down
2 changes: 0 additions & 2 deletions packages/ui/src/utils/toTree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,8 @@ export function toTree(queues: AppQueue[]): AppQueueTreeNode {

const parts = queue.name.split(queue.delimiter);
let currentLevel = root.children;
let currentPath = '';

parts.forEach((part, index) => {
currentPath = currentPath ? `${currentPath}${queue.delimiter}${part}` : part;
let node = currentLevel.find((n) => n.name === part);

if (!node) {
Expand Down

0 comments on commit 58475e0

Please sign in to comment.