7525-devToTest #419

Merged
alexm merged 177 commits from 7525-devToTest into test 2024-06-04 08:06:27 +00:00
1 changed files with 2 additions and 3 deletions
Showing only changes of commit 3fded533a6 - Show all commits

View File

@ -99,14 +99,13 @@ watch(storeData, async (val) => {
nodes.value[0].children = [...val];
const fetchedNodeKeys = val.flatMap(getNodeIds);
state.set('Tree', [...fetchedNodeKeys]);
const tree = state.get('Tree');
for (let n of tree) {
for (let n of state.get('Tree')) {
await fetchNodeLeaves(n);
}
expanded.value = [null, 1, ...fetchedNodeKeys];
});
onMounted(async (n) => {
onMounted(async () => {
const tree = [...state.get('Tree'), 1];
const lastStateTree = state.get('TreeState');
if (tree) {