Skip to content

Commit

Permalink
fix: handle selectedDecl edge case in console's module tree (#3238)
Browse files Browse the repository at this point in the history
  • Loading branch information
deniseli authored Oct 30, 2024
1 parent 3e2e57f commit fea8ae8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/console/src/features/modules/ModulesTree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const ModuleSection = ({
module.decls
.filter((d) => !!selectedDeclTypes.find((o) => o.key === d.declType))
.filter((d) => !hideUnexported || (isSelected && declName === d.value.name) || declSumTypeIsExported(d.value)),
[module.decls, selectedDeclTypes, hideUnexported],
[module.decls, selectedDeclTypes, hideUnexported, isSelected, declName],
)

return (
Expand Down

0 comments on commit fea8ae8

Please sign in to comment.