Merge pull request #1935 from ahmadnassri/develop

fix: correct method calls for deterministic ids
This commit is contained in:
Knut Sveidqvist 2021-03-18 21:01:19 +01:00 committed by GitHub
commit b789d44fd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ const init = function() {
mermaidAPI.updateSiteConfig({ gantt: mermaid.ganttConfig });
}
const nextId = utils.initIdGeneratior(conf.deterministicIds, conf.deterministicIDSeed).next;
const idGeneratior = utils.initIdGeneratior(conf.deterministicIds, conf.deterministicIDSeed);
let txt;
@ -92,7 +92,7 @@ const init = function() {
continue;
}
const id = `mermaid-${nextId()}`;
const id = `mermaid-${idGeneratior.next()}`;
// Fetch the graph definition including tags
txt = element.innerHTML;