diff --git a/src/frontend/src/CustomNodes/GenericNode/index.tsx b/src/frontend/src/CustomNodes/GenericNode/index.tsx index acbdde477..d7e8a71bb 100644 --- a/src/frontend/src/CustomNodes/GenericNode/index.tsx +++ b/src/frontend/src/CustomNodes/GenericNode/index.tsx @@ -15,7 +15,9 @@ import { NodeDataType} from "../../types/flow"; export default function GenericNode({ data, selected}:{data:NodeDataType,selected:boolean}) { const {types, deleteNode} = useContext(typesContext); const Icon = nodeIcons[types[data.type]]; - + if(!Icon){ + return + } return (