course creation
This commit is contained in:
@@ -191,8 +191,8 @@ export class TpePage implements OnInit {
|
||||
this.total.set(res.length);
|
||||
} else {
|
||||
// List returns PagedResult
|
||||
this.rows.set(res.data);
|
||||
this.total.set(res.meta.total);
|
||||
this.rows.set(res.content);
|
||||
this.total.set(res.pageable.total);
|
||||
}
|
||||
this.loading.set(false);
|
||||
},
|
||||
@@ -281,8 +281,8 @@ export class TpePage implements OnInit {
|
||||
// Normal list with pagination
|
||||
this.api.list(params).subscribe({
|
||||
next: (res) => {
|
||||
this.rows.set(res.data);
|
||||
this.total.set(res.meta.total);
|
||||
this.rows.set(res.content);
|
||||
this.total.set(res.pageable.total);
|
||||
this.loading.set(false);
|
||||
},
|
||||
error: () => {
|
||||
|
||||
Reference in New Issue
Block a user