Skip to content

Commit b04d73d

Browse files
committed
fix: repeatedly request component tree
1 parent f7b7964 commit b04d73d

File tree

1 file changed

+1
-2
lines changed
  • packages/app-frontend/src/features/components/composable

1 file changed

+1
-2
lines changed

packages/app-frontend/src/features/components/composable/components.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,7 @@ export function useComponent (instance: Ref<ComponentTreeNode>) {
181181
onMounted(() => {
182182
if (instance.value.autoOpen) {
183183
toggleExpand(true, true)
184-
}
185-
if (isExpanded.value) {
184+
} else if (isExpanded.value) {
186185
requestComponentTree(instance.value.id)
187186
}
188187
})

0 commit comments

Comments
 (0)