Skip query params page link subscription in non page mode

This commit is contained in:
Igor Kulikov 2022-01-14 19:29:43 +02:00
parent e2e12d5871
commit 8af88fd199

View File

@ -281,6 +281,7 @@ export class EntitiesTableComponent extends PageComponent implements IEntitiesTa
)
.subscribe();
if (this.pageMode) {
this.route.queryParams.pipe(skip(1)).subscribe((params: PageQueryParam) => {
this.paginator.pageIndex = Number(params.page) || 0;
this.paginator.pageSize = Number(params.pageSize) || this.defaultPageSize;
@ -295,6 +296,7 @@ export class EntitiesTableComponent extends PageComponent implements IEntitiesTa
}
this.updateData();
});
}
this.updatePaginationSubscriptions();
this.viewInited = true;