We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a212ff6 commit 605c5d4Copy full SHA for 605c5d4
web_src/js/components/ViewFileTreeItem.vue
@@ -25,9 +25,12 @@ const doLoadChildren = async () => {
25
collapsed.value = !collapsed.value;
26
if (!collapsed.value && props.loadChildren) {
27
isLoading.value = true;
28
- const _children = await props.loadChildren(props.item.path);
29
- children.value = _children;
30
- isLoading.value = false;
+ try {
+ const _children = await props.loadChildren(props.item.path);
+ children.value = _children;
31
+ } finally {
32
+ isLoading.value = false;
33
+ }
34
}
35
};
36
0 commit comments