#1418 Fix for descriptions in states

This commit is contained in:
Knut Sveidqvist
2020-05-27 22:18:59 +02:00
parent 39ef0107ad
commit 8603cf89b0
4 changed files with 43 additions and 8 deletions

View File

@@ -15,7 +15,7 @@ export const setConf = function(cnf) {
}
};
const nodeDb = {};
let nodeDb = {};
/**
* Returns the all the styles from classDef statements in the graph definition.
@@ -203,6 +203,7 @@ const setupDoc = (g, parent, doc, altFlag) => {
export const draw = function(text, id) {
logger.info('Drawing state diagram (v2)', id);
stateDb.clear();
nodeDb = {};
const parser = state.parser;
parser.yy = stateDb;