1
0
mirror of https://github.com/allerta-vvf/allerta-vvf synced 2025-06-06 00:49:21 +02:00

Hide hidden rows

This commit is contained in:
2021-12-27 13:22:32 +01:00
parent 3ac0614163
commit 0f90b28c26

View File

@@ -20,7 +20,10 @@ export class TableComponent implements OnInit {
loadTableData() {
this.apiClient.get(this.sourceType || "list").then((data: any) => {
console.log(data);
this.data = data;
this.data = data.filter((row: any) => {
if(typeof row.hidden !== 'undefined') return !row.hidden;
return true;
});
});
}