fix: Restore conf.

This commit is contained in:
Sidharth Vinod 2022-10-07 17:14:33 +08:00
parent f4a5b80eff
commit 6fb92f6f3c
No known key found for this signature in database
GPG Key ID: FB5CCD378D3907CD
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ const init = async function (
) {
try {
log.info('Detectors in init', mermaid.detectors); // eslint-disable-line
const conf = config; // TODO OR mermaidAPI.getConfig(); ?
const conf = mermaidAPI.getConfig();
if (conf?.extraDiagrams && conf.extraDiagrams.length > 0) {
await Promise.allSettled(
conf.extraDiagrams.map(async (diagram: string) => {