mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-22 08:50:13 +02:00
Merge branch 'release/10.0.0' into sidv/splitDiagrams
* release/10.0.0: Cleanup
This commit is contained in:
@@ -78,7 +78,7 @@ export const getDiagramFromText = async (txt: string): Promise<Diagram> => {
|
||||
if (!loader) {
|
||||
throw new UnknownDiagramError(`Diagram ${type} not found.`);
|
||||
}
|
||||
// Diagram not available, loading it
|
||||
// Diagram not available, loading it.
|
||||
// new diagram will try getDiagram again and if fails then it is a valid throw
|
||||
const { id, diagram } = await loader();
|
||||
registerDiagram(id, diagram);
|
||||
|
Reference in New Issue
Block a user