Skip to content

Commit 740d886

Browse files
authored
v20.4.1 - Patch
* Quick patch for missing mat-sort on afterViewInit * Update package-lock
1 parent 550cdb3 commit 740d886

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@proangular/pro-table",
3-
"version": "20.4.0",
3+
"version": "20.4.1",
44
"description": "A rich, dynamic, and versatile table component based on Angular Material.",
55
"author": "Pro Angular <webmaster@proangular.com>",
66
"homepage": "https://www.proangular.com",

src/app/public/table/table.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ export class TableComponent<T extends object & { id: number | string }>
224224

225225
public ngAfterViewInit(): void {
226226
if (!this.matSort) {
227-
throw new Error('MatSort is not initialized.');
227+
return; // `mat-sort` isn't used, return early
228228
}
229229

230230
const init = this.initialSort;

0 commit comments

Comments
 (0)