Skip to content

Commit 50c0878

Browse files
committed
fix(tree): Fix tree nested data source
1 parent e288bc2 commit 50c0878

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
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
}));

0 commit comments

Comments
 (0)