mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
Fix missing await
in usage document
This commit is contained in:
parent
7f9ebcf2c6
commit
c6c3b07c33
@ -348,10 +348,10 @@ mermaid.parseError = function (err, hash) {
|
|||||||
displayErrorInGui(err);
|
displayErrorInGui(err);
|
||||||
};
|
};
|
||||||
|
|
||||||
const textFieldUpdated = function () {
|
const textFieldUpdated = async function () {
|
||||||
const textStr = getTextFromFormField('code');
|
const textStr = getTextFromFormField('code');
|
||||||
|
|
||||||
if (mermaid.parse(textStr)) {
|
if (await mermaid.parse(textStr)) {
|
||||||
reRender(textStr);
|
reRender(textStr);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -345,10 +345,10 @@ mermaid.parseError = function (err, hash) {
|
|||||||
displayErrorInGui(err);
|
displayErrorInGui(err);
|
||||||
};
|
};
|
||||||
|
|
||||||
const textFieldUpdated = function () {
|
const textFieldUpdated = async function () {
|
||||||
const textStr = getTextFromFormField('code');
|
const textStr = getTextFromFormField('code');
|
||||||
|
|
||||||
if (mermaid.parse(textStr)) {
|
if (await mermaid.parse(textStr)) {
|
||||||
reRender(textStr);
|
reRender(textStr);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user