Also fix for error handling when setting mermaid.parseError

This commit is contained in:
Knut Sveidqvist
2020-06-06 12:42:35 +02:00
parent 22b0ddfb42
commit 85a8feec9d
24 changed files with 783 additions and 772 deletions

View File

@@ -285,11 +285,11 @@ export const draw = function(text, id) {
parser.yy = flowDb;
// Parse the graph definition
try {
// try {
parser.parse(text);
} catch (err) {
logger.debug('Parsing failed');
}
// } catch (err) {
// logger.debug('Parsing failed');
// }
// Fetch the default direction, use TD if none was found
let dir = flowDb.getDirection();