fix js errors
Deploy / deploy (push) Successful in 38s

This commit is contained in:
2026-05-12 10:51:34 +02:00
parent 8e44b5fbd5
commit 456110ffd3
+4 -3
View File
@@ -35,6 +35,10 @@ let copyBuffer = null;
let editingNodeId = null;
let editingShapeId = null;
let syncInterval = null;
let syncHashes = { events: null, documents: null, network: null };
let pendingCanvasCreate = null;
const DOC_TYPE_ICONS = {
deployment: { icon: 'fa-server', color: '#06b6d4' },
attack: { icon: 'fa-bolt', color: '#ef4444' },
@@ -732,7 +736,6 @@ async function loadNetworkData() {
renderNodeList();
renderShapeList();
renderNodeToolbar();
setupCanvasClickCreate();
startSync();
if (shapes.length) nextShapeZ = Math.max(...shapes.map(x => x.z_index)) + 1;
buildCanvasGraph();
@@ -1182,8 +1185,6 @@ function renderNodeToolbar() {
});
}
let pendingCanvasCreate = null;
function setupCanvasClickCreate() {
const wrapper = document.getElementById('networkCanvasWrapper');
const bar = document.getElementById('nodeToolbar');