fix: fix openSelectiveNodeCreator custom action on new canvas

This commit is contained in:
Alex Grozav 2025-01-11 21:58:12 +02:00
parent c6b491cdbb
commit 5b21d15bab

View file

@ -31,6 +31,7 @@ import type {
IWorkflowDb, IWorkflowDb,
IWorkflowTemplate, IWorkflowTemplate,
NodeCreatorOpenSource, NodeCreatorOpenSource,
NodeFilterType,
ToggleNodeCreatorOptions, ToggleNodeCreatorOptions,
WorkflowDataWithTemplateId, WorkflowDataWithTemplateId,
XYPosition, XYPosition,
@ -1554,12 +1555,15 @@ function registerCustomActions() {
registerCustomAction({ registerCustomAction({
key: 'openSelectiveNodeCreator', key: 'openSelectiveNodeCreator',
action: ({ action: ({
creatorview: creatorView,
connectiontype: connectionType, connectiontype: connectionType,
node, node,
}: { }: {
creatorview: NodeFilterType;
connectiontype: NodeConnectionType; connectiontype: NodeConnectionType;
node: string; node: string;
}) => { }) => {
nodeCreatorStore.openSelectiveNodeCreator({ node, connectionType, creatorView });
void onOpenSelectiveNodeCreator(node, connectionType); void onOpenSelectiveNodeCreator(node, connectionType);
}, },
}); });