Skip to content

Commit d3d0640

Browse files
committed
fix(tree): Fix tree nested data source (#9828)
1 parent c677055 commit d3d0640

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/material-experimental/tree/data-source/nested-data-source.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export class MatTreeNestedDataSource<T> implements DataSource<T> {
2828
set data(value: T[]) { this._data.next(value); }
2929

3030
connect(collectionViewer: CollectionViewer): Observable<T[]> {
31-
return merge([collectionViewer.viewChange, this._data])
31+
return merge(...[collectionViewer.viewChange, this._data])
3232
.pipe(map(() => {
3333
return this.data;
3434
}));

src/material-experimental/tree/tree.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This tree builds on the foundation of the CDK tree and uses a similar interface
55
data source input and template, except that its element and attribute selectors will be prefixed
66
with `mat-` instead of `cdk-`.
77

8-
There are two types of trees: Flat tree and Nested Tree. The DOM structures are different for these
8+
There are two types of trees: Flat tree and nested tree. The DOM structures are different for these
99
two types of trees.
1010

1111
#### Flat tree

0 commit comments

Comments
 (0)