0
0
Fork 0

remove on selected

This commit is contained in:
William Buezas 2024-05-27 08:29:52 -03:00
parent c304c68c9e
commit b408e0daaf
1 changed files with 0 additions and 10 deletions

View File

@ -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);