Criteria: Add criterion should go in 1st page

This commit is contained in:
Konstantinos Triantafyllou 2022-07-13 10:51:11 +03:00
parent b0a0268a4e
commit 206e3f5900
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ export class CriteriaComponent implements OnInit {
this.criteria.insert(0, this.fb.group({ this.criteria.insert(0, this.fb.group({
constraint: constraintArray constraint: constraintArray
})); }));
this.page = Math.ceil(this.criteria.length/this.pageSize); this.page = 1;
this.cdr.detectChanges(); this.cdr.detectChanges();
} }