diff --git a/src/components/InfoBox.tsx b/src/components/InfoBox.tsx index 9bf92a4..5c57f37 100644 --- a/src/components/InfoBox.tsx +++ b/src/components/InfoBox.tsx @@ -25,7 +25,9 @@ const InfoBoxComponent: React.FC = ({ const isAddable = selectedNode && validTypes.includes(selectedNode.type); const handleAddToWorkspace = async () => { - if (!selectedNode) return; + if (!selectedNode) { + return; + } if (isAddable) { addToWorkspace(selectedNode);