mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-22 00:40:22 +02:00
Fix for first case
This commit is contained in:
@@ -194,7 +194,7 @@ export const addRelation = function(_id1, _id2, title) {
|
||||
}
|
||||
addState(id1, type1);
|
||||
addState(id2, type2);
|
||||
currentDocument.relations.push({ id1, id2, title });
|
||||
currentDocument.relations.push({ id1, id2, title: 'x' + title });
|
||||
};
|
||||
|
||||
const addDescription = function(id, _descr) {
|
||||
|
@@ -175,7 +175,7 @@ const setupNode = (g, parent, node, altFlag) => {
|
||||
};
|
||||
let cnt = 0;
|
||||
const setupDoc = (g, parent, doc, altFlag) => {
|
||||
cnt = 0;
|
||||
// cnt = 0;
|
||||
log.trace('items', doc);
|
||||
doc.forEach(item => {
|
||||
if (item.stmt === 'state' || item.stmt === 'default') {
|
||||
|
Reference in New Issue
Block a user