Skip to content

Commit

Permalink
Merge pull request #4376 from rhysd/doc/missing_await
Browse files Browse the repository at this point in the history
Fix missing `await` in usage document
  • Loading branch information
knsv authored May 8, 2023
2 parents 8573db5 + c6c3b07 commit f8b029d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/config/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -348,10 +348,10 @@ mermaid.parseError = function (err, hash) {
displayErrorInGui(err);
};

const textFieldUpdated = function () {
const textFieldUpdated = async function () {
const textStr = getTextFromFormField('code');

if (mermaid.parse(textStr)) {
if (await mermaid.parse(textStr)) {
reRender(textStr);
}
};
Expand Down
4 changes: 2 additions & 2 deletions packages/mermaid/src/docs/config/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -345,10 +345,10 @@ mermaid.parseError = function (err, hash) {
displayErrorInGui(err);
};

const textFieldUpdated = function () {
const textFieldUpdated = async function () {
const textStr = getTextFromFormField('code');

if (mermaid.parse(textStr)) {
if (await mermaid.parse(textStr)) {
reRender(textStr);
}
};
Expand Down

0 comments on commit f8b029d

Please sign in to comment.