Skip to content

Commit a86c8e2

Browse files
committed
adding log to our method, to see the result in browser
1 parent 37fe787 commit a86c8e2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

frontend/src/app/government-service/components/representative-list/representative-list.component.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ export class RepresentativeListComponent implements OnInit {
5555
private listAllRepresentatives() {
5656
this.representativeService.renderAllRepresentatives().subscribe((data) => {
5757
this.representatives = data.map((representative) => {
58+
console.log("Representatives: " + JSON.stringify(representative));
5859
const government = representative.government;
5960
return {
6061
...representative,
@@ -71,6 +72,7 @@ export class RepresentativeListComponent implements OnInit {
7172
.findByGovernmentId(this.currentGovernmentId)
7273
.subscribe((data) => {
7374
this.representatives = data.map((representative) => {
75+
console.log("Representatives: " + JSON.stringify(representative));
7476
const government = representative.government;
7577
return {
7678
...representative,
@@ -84,6 +86,7 @@ export class RepresentativeListComponent implements OnInit {
8486
private governmentList() {
8587
this.governmentService.renderAllGovernments().subscribe(
8688
(response) => {
89+
console.log("Representatives: " + JSON.stringify(response));
8790
this.governmentsSubject.next(response);
8891
},
8992
(error) => {

0 commit comments

Comments
 (0)