diff --git a/templates/modals/objects/delete_pathway_edge_modal.html b/templates/modals/objects/delete_pathway_edge_modal.html index a56e3137..30c82fff 100644 --- a/templates/modals/objects/delete_pathway_edge_modal.html +++ b/templates/modals/objects/delete_pathway_edge_modal.html @@ -5,8 +5,8 @@ class="modal" x-data="modalForm({ state: { selectedEdge: '', imageUrl: '' } })" @modal-opened.window=" - const links = d3.selectAll('line.highlighted'); - console.log(links); + const links = d3.selectAll('path.highlighted'); + if (!links.empty()) { const el = links.node(); const selectElement = document.getElementById('delete_pathway_edge_edges');