From ca2cf0fdab679f4dc663546da9b163e403911aca Mon Sep 17 00:00:00 2001 From: piratefinn Date: Wed, 24 Jan 2018 12:51:03 +0000 Subject: [PATCH] No longer throwing errors and proper limit & slice --- src/app/dashboard/category-month.component.html | 8 ++++---- src/app/dashboard/category-month.component.ts | 10 +++++----- src/app/dashboard/dashboard-customer.component.html | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/app/dashboard/category-month.component.html b/src/app/dashboard/category-month.component.html index a6ccc84..ac5ba47 100644 --- a/src/app/dashboard/category-month.component.html +++ b/src/app/dashboard/category-month.component.html @@ -22,7 +22,7 @@
-
  • +
  • @@ -53,7 +53,7 @@
    -
  • +
  • @@ -84,7 +84,7 @@
    -
  • +
  • @@ -115,7 +115,7 @@
    -
  • +
  • diff --git a/src/app/dashboard/category-month.component.ts b/src/app/dashboard/category-month.component.ts index 40fbbdb..1e20a3e 100644 --- a/src/app/dashboard/category-month.component.ts +++ b/src/app/dashboard/category-month.component.ts @@ -18,10 +18,10 @@ export class CategoryMonthComponent implements OnInit { first: 0, }; - weekList1 = {}; - weekList2 = {}; - weekList3 = {}; - weekList4 = {}; + weekList1 = []; + weekList2 = []; + weekList3 = []; + weekList4 = []; categoryList: number[] = []; dayList: any[] = []; @@ -32,7 +32,7 @@ export class CategoryMonthComponent implements OnInit { myWeek4: any; categoryIdList: number[] = []; categoryNameList: string[] = []; - categoryLimit1: number = 6; + categoryLimit1: number = 2; categoryLimit2: number = 6; categoryLimit3: number = 6; categoryLimit4: number = 6; diff --git a/src/app/dashboard/dashboard-customer.component.html b/src/app/dashboard/dashboard-customer.component.html index 46310d0..e8019a4 100644 --- a/src/app/dashboard/dashboard-customer.component.html +++ b/src/app/dashboard/dashboard-customer.component.html @@ -94,7 +94,7 @@ {{ sectorPurchases[i] || 'N/A' }} -
  • +