changed category view method

This commit is contained in:
piratefinn 2018-03-26 14:47:20 +01:00
parent 87d6e51842
commit 3b2009186a
2 changed files with 4 additions and 15 deletions

View file

@ -31,7 +31,6 @@ export class CategoryMonthComponent implements OnInit {
weekEssential3: number = 0;
weekEssential4: number = 0;
categoryList: any;
dayList: any[] = [];
valueList: number[] = [];
myWeek1: any;
@ -47,16 +46,6 @@ export class CategoryMonthComponent implements OnInit {
private api: ApiService,
) {
this.setDate();
this.api.categoryList().subscribe(
result => {
this.categoryList = result.categories;
console.log('Category List received');
},
error => {
console.log('Retrieval Error');
console.log( error._body );
}
);
this.api.categoryTransactionList().subscribe(
result => {
this.setData(result);