mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
fix: hadling of render after error, fixing test
This commit is contained in:
parent
4081d7f5f6
commit
413816783d
@ -285,7 +285,7 @@ const render = function (id, _txt, cb, container) {
|
||||
|
||||
// Remove previous tpm element if it exists
|
||||
let element;
|
||||
if (cnf.securityLevel === 'sandbox') {
|
||||
if (cnf.securityLevel !== 'sandbox') {
|
||||
element = document.querySelector('#' + 'd' + id);
|
||||
} else {
|
||||
element = document.querySelector('#' + 'i' + id);
|
||||
|
Loading…
x
Reference in New Issue
Block a user