diff --git a/src/app/home/home.component.ts b/src/app/home/home.component.ts index 336c907..e635cc9 100644 --- a/src/app/home/home.component.ts +++ b/src/app/home/home.component.ts @@ -55,6 +55,7 @@ export class HomeComponent implements OnInit { this.getSamples(); } + // Iterate through active keys to assemble an api request for the required data getSamples() { let query = '/samples?status%5B%5D=validated&status=new&filters%5B%5D=%7B%22mode%22%3A%22in%22%2C%22field%22%3A%22material.group%22%2C%22values%22%3A%5B'; let temp = ''; @@ -79,7 +80,7 @@ export class HomeComponent implements OnInit { } }); } - const datasets = this.updateGraph(); + this.updateGraph(); } // preset select