diff --git a/packages/x-tree-view/src/internals/plugins/useTreeViewNodes/useTreeViewNodes.ts b/packages/x-tree-view/src/internals/plugins/useTreeViewNodes/useTreeViewNodes.ts index 5a2eee61e155c..ecbd95aa5eb3a 100644 --- a/packages/x-tree-view/src/internals/plugins/useTreeViewNodes/useTreeViewNodes.ts +++ b/packages/x-tree-view/src/internals/plugins/useTreeViewNodes/useTreeViewNodes.ts @@ -169,7 +169,7 @@ export const useTreeViewNodes: TreeViewPlugin = ({ } }); - return { ...prevState, ...newState }; + return { ...prevState, nodes: newState }; }); }, [ instance,