Criteria: Add criterion should go in 1st page
This commit is contained in:
parent
b0a0268a4e
commit
206e3f5900
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue