fix(#2): Address PR comments

This commit is contained in:
Josh Creek
2026-02-22 14:21:31 +00:00
parent 9f8c88ed83
commit c80ae75550
2 changed files with 32 additions and 10 deletions
+6 -1
View File
@@ -505,6 +505,9 @@
if (!details || details.type !== 'device') {
return false;
}
if (typeof details.deviceType !== 'string') {
return false;
}
return details.deviceType.toLowerCase().includes('switch');
};
const endpointSide = (angle: number): SwitchSide => {
@@ -938,7 +941,9 @@
let resizeTimeoutId: ReturnType<typeof setTimeout> | null = null;
const initialize = async () => {
cytoscape.use(dagre);
if (!cytoscape('layout', 'dagre')) {
cytoscape.use(dagre);
}
cy = cytoscape({
container,
elements: [],