chore: apply suggestions from threads for merge.

This commit is contained in:
Björn Otgaar
2025-11-20 14:53:42 +01:00
parent 1dfc14ede8
commit 79b645df88
8 changed files with 29 additions and 40 deletions

View File

@@ -31,8 +31,8 @@ export type PhaseNode = Node<PhaseNodeData>
* @param props NodeProps, like id, label, children
* @returns React.JSX.Element
*/
export default function PhaseNode(props: NodeProps<Node>) {
const data = props.data as PhaseNodeData;
export default function PhaseNode(props: NodeProps<PhaseNode>) {
const data = props.data;
const {updateNodeData} = useFlowStore();
const updateLabel = (value: string) => updateNodeData(props.id, {...data, label: value});
const label_input_id = `phase_${props.id}_label_input`;