mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
Fixed a new config issue
Diagrams now properly reset to siteConfig when there are multiple diagrams on a single page
This commit is contained in:
parent
1fc142a59f
commit
43d37ab1cf
@ -206,6 +206,7 @@ const render = function(id, _txt, cb, container) {
|
|||||||
configApi.reset();
|
configApi.reset();
|
||||||
const siteConfig = getSiteConfig();
|
const siteConfig = getSiteConfig();
|
||||||
updateRendererConfigs(siteConfig);
|
updateRendererConfigs(siteConfig);
|
||||||
|
reinitialize(siteConfig);
|
||||||
}
|
}
|
||||||
|
|
||||||
const cnf = getConfig();
|
const cnf = getConfig();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user