refactor: make sure that the droppable styles are kept, update some nodes to reflect their used functionality.
ref: N25B-294
This commit is contained in:
@@ -22,8 +22,8 @@ import duplicateIndices from '../../../../utils/duplicateIndices';
|
||||
export type TriggerNodeData = {
|
||||
label: string;
|
||||
droppable: boolean;
|
||||
triggerType: unknown;
|
||||
triggers: [unknown];
|
||||
triggerType: "keywords" | string;
|
||||
triggers: Keyword[] | never;
|
||||
hasReduce: boolean;
|
||||
};
|
||||
|
||||
@@ -56,7 +56,7 @@ export default function TriggerNode(props: NodeProps<Node>) {
|
||||
)}
|
||||
{data.triggerType === "keywords" && (
|
||||
<Keywords
|
||||
keywords={[{id: "test", keyword: " test"}]}
|
||||
keywords={data.triggers}
|
||||
setKeywords={setKeywords}
|
||||
/>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user