#2026 Fix for descriptions of composite states

This commit is contained in:
Knut Sveidqvist
2021-04-30 13:50:21 +02:00
parent fab98633a4
commit 2240333df1
11 changed files with 555 additions and 285 deletions

View File

@@ -96,7 +96,10 @@ const setupNode = (g, parent, node, altFlag) => {
const nodeData = {
labelStyle: '',
shape: nodeDb[node.id].shape,
labelText: nodeDb[node.id].description,
labelText:
typeof nodeDb[node.id].description === 'object'
? nodeDb[node.id].description[0]
: nodeDb[node.id].description,
classes: nodeDb[node.id].classes, //classStr,
style: '', //styles.style,
id: node.id,