Fix for failing yarn dev on Standard syntax check for mermaidAPI.js

This commit is contained in:
Ashish Jain 2019-08-14 18:33:10 +02:00
parent 8f0a7f56e2
commit ca97ac11e1
1 changed files with 4 additions and 4 deletions

View File

@ -497,14 +497,14 @@ const render = function (id, txt, cb, container) {
svgCode = decodeEntities(svgCode)
if (typeof cb !== 'undefined') {
switch(graphType) {
switch (graphType) {
case 'flowchart':
cb(svgCode, flowDb.bindFunctions)
break;
break
case 'gantt':
cb(svgCode, ganttDb.bindFunctions)
break;
default:
break
default:
}
} else {
logger.debug('CB = undefined!')