mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-23 09:20:03 +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) {
|
if (!loader) {
|
||||||
throw new UnknownDiagramError(`Diagram ${type} not found.`);
|
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
|
// new diagram will try getDiagram again and if fails then it is a valid throw
|
||||||
const { id, diagram } = await loader();
|
const { id, diagram } = await loader();
|
||||||
registerDiagram(id, diagram);
|
registerDiagram(id, diagram);
|
||||||
|
Reference in New Issue
Block a user