This commit is contained in:
Sidharth Vinod
2023-02-20 01:19:07 +05:30
parent 4c7306d808
commit 40b5f868de

View File

@@ -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);