fix(dashboard): fix fatal JS syntax error in setupSSE and snake_case relationType mapping

This commit is contained in:
Riz Ashraf committed 2026-09-12 09:37:19 +01:00
1 parent 44800d4ef2
commit cba02a43b7
1 file changed
+3 -2
+3 -2
View File
@@ -101,7 +101,7 @@
data.relations.forEach(r => { data.relations.forEach(r => {
if (nodeIds.has(r.from) && nodeIds.has(r.to)) { if (nodeIds.has(r.from) && nodeIds.has(r.to)) {
edges.push({ from: r.from, to: r.to, label: r.relation_type, arrows: 'to' }); edges.push({ from: r.from, to: r.to, label: r.relationType, arrows: 'to' });
} }
}); });
@@ -186,7 +186,7 @@
div.innerText = `[${time}] ${event.data}`; div.innerText = `[${time}] ${event.data}`;
feed.appendChild(div); feed.appendChild(div);
feed.scrollTop = feed.scrollHeight; feed.scrollTop = feed.scrollHeight;
}; });
} }
// Start // Start
@@ -203,3 +203,4 @@
</html> </html>