From af576fa3921beed8f2afd2730fe05f7b3f79c081 Mon Sep 17 00:00:00 2001 From: "Hartenstein Ruben (PEA4-Fe)" Date: Mon, 18 Jan 2021 14:09:25 +0100 Subject: [PATCH] Added comments --- src/app/home/home.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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