chore: apply suggestions from threads for merge.
This commit is contained in:
@@ -40,8 +40,8 @@ export function TriggerNodeCanConnect(connection: Connection | Edge): boolean {
|
||||
* @param props NodeProps, like id, label, children
|
||||
* @returns React.JSX.Element
|
||||
*/
|
||||
export default function TriggerNode(props: NodeProps<Node>) {
|
||||
const data = props.data as TriggerNodeData
|
||||
export default function TriggerNode(props: NodeProps<TriggerNode>) {
|
||||
const data = props.data;
|
||||
const {updateNodeData} = useFlowStore();
|
||||
|
||||
const setKeywords = (keywords: Keyword[]) => {
|
||||
@@ -67,7 +67,8 @@ export default function TriggerNode(props: NodeProps<Node>) {
|
||||
|
||||
/**
|
||||
* Reduces each Trigger, including its children down into its relevant data.
|
||||
* @param props: The Node Properties of this node.
|
||||
* @param node: The Node Properties of this node.
|
||||
* @param nodes: all the nodes in the graph.
|
||||
*/
|
||||
export function TriggerReduce(node: Node, nodes: Node[]) {
|
||||
// Replace this for nodes functionality
|
||||
|
||||
Reference in New Issue
Block a user