Hide hidden rows

This commit is contained in:
Matteo Gheza 2021-12-27 13:22:32 +01:00
parent 3ac0614163
commit 0f90b28c26
1 changed files with 4 additions and 1 deletions

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;
});
});
}