mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
feat: AI Workflow Builder agent (no-changelog) (#17423)
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
This commit is contained in:
@@ -714,7 +714,11 @@ async function onContextMenuAction(action: ContextMenuAction, nodeIds: string[])
|
||||
}
|
||||
}
|
||||
|
||||
async function onTidyUp(payload: { source: CanvasLayoutSource }) {
|
||||
async function onTidyUp(payload: { source: CanvasLayoutSource; nodeIdsFilter?: string[] }) {
|
||||
if (payload.nodeIdsFilter && payload.nodeIdsFilter.length > 0) {
|
||||
clearSelectedNodes();
|
||||
addSelectedNodes(payload.nodeIdsFilter.map(findNode).filter(isPresent));
|
||||
}
|
||||
const applyOnSelection = selectedNodes.value.length > 1;
|
||||
const target = applyOnSelection ? 'selection' : 'all';
|
||||
const result = layout(target);
|
||||
|
||||
Reference in New Issue
Block a user