Skip to content

Commit

Permalink
fix: Merge current collapse state when component updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Azurewarth0920 committed Jan 1, 2024
1 parent 68b84df commit de4220d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/client/src/pages/components.vue
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,11 @@ onDevToolsClientConnected(() => {
return
treeNode.value = data.data
componentTreeCollapseMap.value = normalizeComponentTreeCollapsed(data.data)
componentTreeCollapseMap.value = {
...normalizeComponentTreeCollapsed(data.data),
...componentTreeCollapseMap.value,
}
initSelectedComponent(data.data)
}, {
inspectorId: 'components',
Expand Down

0 comments on commit de4220d

Please sign in to comment.