diff --git a/src/diagrams/flowchart/flowDb.js b/src/diagrams/flowchart/flowDb.js index 275e9c39df..52327cc143 100644 --- a/src/diagrams/flowchart/flowDb.js +++ b/src/diagrams/flowchart/flowDb.js @@ -45,9 +45,6 @@ export const addVertex = function (id, text, type, style) { if (typeof type !== 'undefined') { vertices[id].type = type } - if (typeof type !== 'undefined') { - vertices[id].type = type - } if (typeof style !== 'undefined') { if (style !== null) { style.forEach(function (s) {