mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-12 02:29:37 +02:00
fixed build error
This commit is contained in:
@@ -134,7 +134,7 @@ export const addVertex = function (
|
|||||||
// console.log('yamlData', yamlData);
|
// console.log('yamlData', yamlData);
|
||||||
const doc = yaml.load(yamlData, { schema: yaml.JSON_SCHEMA }) as NodeMetaData;
|
const doc = yaml.load(yamlData, { schema: yaml.JSON_SCHEMA }) as NodeMetaData;
|
||||||
if (doc.shape && doc.shape !== doc.shape.toLowerCase()) {
|
if (doc.shape && doc.shape !== doc.shape.toLowerCase()) {
|
||||||
throw new Error(`No such shape: ${node.shape}. Shape names should be lowercase.`);
|
throw new Error(`No such shape: ${doc.shape}. Shape names should be lowercase.`);
|
||||||
}
|
}
|
||||||
|
|
||||||
// console.log('yamlData doc', doc);
|
// console.log('yamlData doc', doc);
|
||||||
|
Reference in New Issue
Block a user