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

View File

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