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