From 8fe8535754ecd045fb24ee3e703561a19b59e616 Mon Sep 17 00:00:00 2001 From: Denise Li Date: Wed, 28 Aug 2024 18:41:01 -0400 Subject: [PATCH] memo --- frontend/src/features/modules/ModulesTree.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/features/modules/ModulesTree.tsx b/frontend/src/features/modules/ModulesTree.tsx index bac9e485b9..5e7eae4c9c 100644 --- a/frontend/src/features/modules/ModulesTree.tsx +++ b/frontend/src/features/modules/ModulesTree.tsx @@ -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 (