Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

Commit

Permalink
Fix default name edge case
Browse files Browse the repository at this point in the history
  • Loading branch information
Fajfa committed Feb 4, 2022
1 parent e424627 commit 37ea729
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/WorkflowEditor.vue
Expand Up @@ -1440,6 +1440,7 @@ export default {
cells.forEach(cell => {
if (cell && cell.vertex) {
if (!this.rendering) {
cell.defaultName = true
this.addCellToVertices(cell)
this.graph.setSelectionCells([cell])
}
Expand Down Expand Up @@ -1838,7 +1839,7 @@ export default {
defaultName = false,
arguments: args = [],
results = [],
meta = { visual: {} },
meta = {},
} = (this.workflow.steps || []).find(({ stepID }) => {
return stepID === cell.id
}) || {}
Expand All @@ -1849,7 +1850,7 @@ export default {
stepID: cell.id,
kind: kind || '',
ref: ref || '',
defaultName: defaultName || meta.visual.defaultName,
defaultName: defaultName || meta.visual?.defaultName || cell.defaultName || false,
...(this.rendering ? {} : getKindFromStyle(cell)),
},
}
Expand Down

0 comments on commit 37ea729

Please sign in to comment.