From 8e7756fe35420e806bdd38e59fcf31da20562846 Mon Sep 17 00:00:00 2001 From: Ozzie Gooen Date: Fri, 17 Jun 2022 07:42:44 -0700 Subject: [PATCH] Added Module type display and better error message if no type is found --- .../components/src/components/SquiggleChart.tsx | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/packages/components/src/components/SquiggleChart.tsx b/packages/components/src/components/SquiggleChart.tsx index 8bedd265..a8db5386 100644 --- a/packages/components/src/components/SquiggleChart.tsx +++ b/packages/components/src/components/SquiggleChart.tsx @@ -251,8 +251,20 @@ const SquiggleItem: React.FC = ({ ); } + case "module": { + return ( + + Internal Module + + ); + } default: { - return <>Should be unreachable; + return ( + <> + No display for type: {" "} + {expression.tag} + + ); } } };