mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
fix: redo linting changes
This commit is contained in:
parent
67b5c161de
commit
0e9703bba8
|
@ -781,12 +781,9 @@ export default defineComponent({
|
|||
deepCopy(data.workflowData.nodes),
|
||||
deepCopy(data.workflowData.connections),
|
||||
);
|
||||
|
||||
void this.$nextTick(() => {
|
||||
await this.$nextTick();
|
||||
this.canvasStore.zoomToFit();
|
||||
this.uiStore.stateIsDirty = false;
|
||||
});
|
||||
|
||||
void this.$externalHooks().run('execution.open', {
|
||||
workflowId: data.workflowData.id,
|
||||
workflowName: data.workflowData.name,
|
||||
|
@ -854,9 +851,8 @@ export default defineComponent({
|
|||
this.workflowsStore.setWorkflowPinData(data.workflow.pinData);
|
||||
}
|
||||
|
||||
void this.$nextTick(() => {
|
||||
await this.$nextTick();
|
||||
this.canvasStore.zoomToFit();
|
||||
});
|
||||
},
|
||||
async openWorkflowTemplate(templateId: string) {
|
||||
this.startLoading();
|
||||
|
@ -897,10 +893,9 @@ export default defineComponent({
|
|||
|
||||
await this.addNodes(data.workflow.nodes, data.workflow.connections);
|
||||
this.workflowData = (await this.workflowsStore.getNewWorkflowData(data.name)) || {};
|
||||
void this.$nextTick(() => {
|
||||
await this.$nextTick();
|
||||
this.canvasStore.zoomToFit();
|
||||
this.uiStore.stateIsDirty = true;
|
||||
});
|
||||
|
||||
void this.$externalHooks().run('template.open', {
|
||||
templateId,
|
||||
|
@ -3766,13 +3761,12 @@ export default defineComponent({
|
|||
// exist
|
||||
const actionWatcher = this.workflowsStore.$onAction(({ name, after, args }) => {
|
||||
if (name === 'addNode' && args[0].type === nodeTypeName) {
|
||||
after(() => {
|
||||
after(async () => {
|
||||
const lastAddedNode = this.nodes[this.nodes.length - 1];
|
||||
const previouslyAddedNode = this.nodes[this.nodes.length - 2];
|
||||
|
||||
void this.$nextTick(() =>
|
||||
this.connectTwoNodes(previouslyAddedNode.name, 0, lastAddedNode.name, 0),
|
||||
);
|
||||
await this.$nextTick();
|
||||
this.connectTwoNodes(previouslyAddedNode.name, 0, lastAddedNode.name, 0);
|
||||
|
||||
// Position the added node to the right side of the previously added one
|
||||
lastAddedNode.position = [
|
||||
|
|
Loading…
Reference in a new issue