diff options
Diffstat (limited to 'src/layout.js')
| -rw-r--r-- | src/layout.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/layout.js b/src/layout.js index 95237c5..788edca 100644 --- a/src/layout.js +++ b/src/layout.js @@ -10,8 +10,8 @@ export const addNode = (dot, node) => { const id = node.data.id; dot += ` "${id}" [fixedsize=true; width=${node.dom.offsetWidth / 72}; height=${node.dom.offsetHeight / 72}];\n`; - for (const replyId of node.data.replies || []) - dot += ` "${id}" -> "${replyId}";\n`; + for (const reply of node.data.replies) + dot += ` "${id}" -> "${reply.id}";\n`; return dot; }; |
