Hotfix: ZoneLocationsTree #995

Merged
jon merged 6 commits from Fix-ZoneLocationsTree2 into master 2024-11-25 11:56:31 +00:00
1 changed files with 5 additions and 0 deletions
Showing only changes of commit 8e7cb9c46e - Show all commits

View File

@ -75,6 +75,7 @@ const onNodeExpanded = async (nodeKeysArray) => {
if (response.data) {
node.childs = response.data.map((n) => {
if (n.sons > 0) n.childs = [{}];
n.selected = isSelected(n.selected);
return n;
});
}
@ -115,6 +116,10 @@ function getNodeIds(node) {
return ids;
}
function isSelected(selected) {
if (typeof selected === 'number') return !!selected;
}
watch(
() => store.data,
async (val) => {