Browse Source

fix

master
drfelfel 1 year ago
parent
commit
f1b5e97a0f
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/routes/panel/dashboard/app/app.component.ts

+ 3
- 1
src/routes/panel/dashboard/app/app.component.ts View File

@ -86,7 +86,9 @@ export class AppComponent implements OnInit {
console.log(res['data'])
this.majorList = res['data']['majors']
if(this.majorList.length == 0){
this.majorList = res['data']['majors']
}
let cachedMajorColor = this.RandomColor(res['data']['majors'].length, 'majors');
let cachedMajorLabel = res['data']['majors'].map((major) => {
return major._id

Loading…
Cancel
Save