Skip to content

Commit 5d87c15

Browse files
authored
Fix handleClick error (#2005)
* fix nodes list * fix handleClick error
1 parent 91516b2 commit 5d87c15

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/app/project/project.component.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,10 @@ export class ProjectComponent implements OnInit, OnChanges, OnDestroy {
6868
// therefor set initial sorting direction the opposite direciton
6969
this.sort.direction = 'desc' as SortDirection;
7070
const sortHeader = this.sort.sortables.get('name') as MatSortHeader;
71-
sortHeader._handleClick();
71+
72+
if (!!sortHeader) {
73+
sortHeader._handleClick();
74+
}
7275
}, 100);
7376
}
7477
}

0 commit comments

Comments
 (0)