From a08dbede23af9c978acec3b3d864e48f7999741b Mon Sep 17 00:00:00 2001 From: s-ol Date: Wed, 27 Jan 2021 12:17:09 +0100 Subject: use jsonld framing, add discussion title --- src/layout.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/layout.js') 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; }; -- cgit v1.2.3