From 86ed15e1f1b5fb65015347ed955b4af74a099574 Mon Sep 17 00:00:00 2001 From: Jurriaan Pruis Date: Sat, 8 Jun 2024 21:20:55 +0200 Subject: [PATCH] Cleanup --- static/application.css | 2 +- static/application.js | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/static/application.css b/static/application.css index 44dba83..4ce557e 100644 --- a/static/application.css +++ b/static/application.css @@ -44,7 +44,7 @@ body { } #sidebar.collapsed>button.show { - display:/pa block; + display: block; left: 0; top: 0; pointer-events: all; diff --git a/static/application.js b/static/application.js index 78eaa86..53c5b13 100644 --- a/static/application.js +++ b/static/application.js @@ -348,8 +348,6 @@ function loadMap() { // Automatically create a line from point data map.on("sourcedata", async (e) => { if (e.sourceId == 'positions' && e.sourceDataType == 'metadata' && typeof e.source.data == 'string') { - console.log(e); - console.log(map.isSourceLoaded('positions')); const positionsSource = map.getSource('positions'); const positionsLineSource = map.getSource('positions-line'); if (positionsSource) { @@ -487,11 +485,11 @@ function applyNodeNames(node) { const nodeNamesToFetch = htmx.findAll(node, '.node-name.fetch'); nodeNamesToFetch.forEach((nameToFetch) => { const selector = `#node-list-node-${nameToFetch.dataset.nodeId} .node-name` - console.log(selector); const nodeNameNode = htmx.find(nodeList, selector); - console.log(nodeNameNode); - nameToFetch.innerHTML = nodeNameNode.innerHTML; + if(nodeNameNode) { + nameToFetch.innerHTML = nodeNameNode.innerHTML; + } }); }