forked from verdnatura/salix-front
remove on selected
This commit is contained in:
parent
c304c68c9e
commit
b408e0daaf
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue