From b408e0daaf4fd9d8a2bbf488f2e5f0e00e505b55 Mon Sep 17 00:00:00 2001 From: wbuezas Date: Mon, 27 May 2024 08:29:52 -0300 Subject: [PATCH] remove on selected --- src/pages/Zone/Card/ZoneLocationsTree.vue | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/pages/Zone/Card/ZoneLocationsTree.vue b/src/pages/Zone/Card/ZoneLocationsTree.vue index 6b36b6109..69ace53e2 100644 --- a/src/pages/Zone/Card/ZoneLocationsTree.vue +++ b/src/pages/Zone/Card/ZoneLocationsTree.vue @@ -81,16 +81,6 @@ const fetchNodeLeaves = async (nodeKey) => { } }; -const onSelected = async (val, node) => { - try { - if (val === null) val = undefined; - const params = { geoId: node.id, isIncluded: val }; - await axios.post(`Zones/${route.params.id}/toggleIsIncluded`, params); - } catch (err) { - console.error('Error updating included', err); - } -}; - function getNodeIds(node) { let ids = []; if (node.id) ids.push(node.id);