course creation
This commit is contained in:
@@ -127,7 +127,7 @@ export class LimitsPage implements OnInit {
|
||||
}).pipe(
|
||||
switchMap((res) => {
|
||||
// Convert PagedResult to array for consistency
|
||||
return of(res.data);
|
||||
return of(res.content);
|
||||
})
|
||||
);
|
||||
}
|
||||
@@ -190,8 +190,8 @@ export class LimitsPage 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