feat(editor): Add several performance improvements when adding nodes in new canvas (no-changelog) (#10170)
This commit is contained in:
@@ -825,9 +825,11 @@ async function onAddNodesAndConnections(
|
||||
};
|
||||
});
|
||||
|
||||
await addConnections(mappedConnections);
|
||||
addConnections(mappedConnections);
|
||||
|
||||
uiStore.resetLastInteractedWith();
|
||||
void nextTick(() => {
|
||||
uiStore.resetLastInteractedWith();
|
||||
});
|
||||
}
|
||||
|
||||
async function onRevertAddNode({ node }: { node: INodeUi }) {
|
||||
|
||||
@@ -1389,7 +1389,7 @@ export default defineComponent({
|
||||
|
||||
this.resetWorkspace();
|
||||
|
||||
await this.workflowHelpers.initState(workflow);
|
||||
this.workflowHelpers.initState(workflow);
|
||||
|
||||
if (workflow.sharedWithProjects) {
|
||||
this.workflowsEEStore.setWorkflowSharedWith({
|
||||
|
||||
@@ -125,7 +125,7 @@ async function fetchWorkflow() {
|
||||
try {
|
||||
await workflowsStore.fetchActiveWorkflows();
|
||||
const data = await workflowsStore.fetchWorkflow(workflowId.value);
|
||||
await workflowHelpers.initState(data);
|
||||
workflowHelpers.initState(data);
|
||||
await nodeHelpers.addNodes(data.nodes, data.connections);
|
||||
} catch (error) {
|
||||
toast.showError(error, i18n.baseText('nodeView.showError.openWorkflow.title'));
|
||||
|
||||
Reference in New Issue
Block a user