#5237 fix for broken multiple classDef

This commit is contained in:
Ashish Jain 2024-06-20 11:37:59 +02:00
parent a35e62db14
commit d408efdd1d

View File

@ -152,6 +152,7 @@ let cssClasses = newClassesList(); // style classes defined by a classDef
* *
* @param nodes * @param nodes
* @param nodeData * @param nodeData
* @param classes
*/ */
function insertOrUpdateNode(nodes, nodeData, classes) { function insertOrUpdateNode(nodes, nodeData, classes) {
if (!nodeData.id || nodeData.id === '</join></fork>' || nodeData.id === '</choice>') { if (!nodeData.id || nodeData.id === '</join></fork>' || nodeData.id === '</choice>') {
@ -248,7 +249,7 @@ function getClassesFromDbInfo(dbInfoItem) {
} }
//add comma for all other classes //add comma for all other classes
else { else {
classStr += dbInfoItem.classes[i] + ','; classStr += dbInfoItem.classes[i] + ' ';
} }
} }
return classStr; return classStr;