feat: Added global warning for incomplete program chain

ref: N25B-450
This commit is contained in:
JGerla
2026-01-20 11:53:51 +01:00
parent 23a02b2b4a
commit 5d55ebaaa2
4 changed files with 47 additions and 6 deletions

View File

@@ -7,7 +7,7 @@ import {useEffect} from "react";
import { Toolbar } from '../components/NodeComponents';
import styles from '../../VisProg.module.css';
import {SingleConnectionHandle} from "../components/RuleBasedHandle.tsx";
import type {EditorWarning} from "../components/EditorWarnings.tsx";
import {type EditorWarning} from "../components/EditorWarnings.tsx";
import {allowOnlyConnectionsFromHandle} from "../HandleRules.ts";
import useFlowStore from "../VisProgStores.tsx";
@@ -48,8 +48,6 @@ export default function StartNode(props: NodeProps<StartNode>) {
if (connections.length === 0) { registerWarning(noConnectionWarning); }
else { unregisterWarning(props.id, `${noConnectionWarning.type}:source`); }
}, [connections.length, props.id, registerWarning, unregisterWarning]);
return (
<>