Skip to content

Commit

Permalink
memo
Browse files Browse the repository at this point in the history
  • Loading branch information
deniseli committed Aug 28, 2024
1 parent f377b38 commit 8fe8535
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/features/modules/ModulesTree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const DeclNode = ({ decl, href, isSelected }: { decl: Decl; href: string; isSele
return []
}
const navigate = useNavigate()
const Icon = useMemo(() => (icons[decl.value.case || ''] || CodeBracketSquareIcon), [decl.value.case])
const Icon = useMemo(() => icons[decl.value.case || ''] || CodeBracketSquareIcon, [decl.value.case])
return (
<li className='my-1'>
<DisclosureButton
Expand Down

0 comments on commit 8fe8535

Please sign in to comment.