From c5dff80c58000b1de9fedbf89d03bccf1b8b75c1 Mon Sep 17 00:00:00 2001 From: Clark McCauley Date: Sat, 27 Jan 2024 12:12:38 -0700 Subject: [PATCH] Type assertion for now --- lib/components/NodeContainer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/components/NodeContainer.tsx b/lib/components/NodeContainer.tsx index 7ae3fe2..4d7e98d 100644 --- a/lib/components/NodeContainer.tsx +++ b/lib/components/NodeContainer.tsx @@ -26,7 +26,7 @@ export function NodeContainer({ children, }: NodeContainerProps) { const config = useGraphStore((store) => store.config) - const nodeConfig = config.getNodeConfig(node.type!) + const nodeConfig = config.getNodeConfig(node.type!)! const nodeGroupConfig = config.getNodeGroupConfig(nodeConfig.group) const [collapsed, toggleCollapsed] = useNodeCollapsed()