From d19df54eb31f9fb65e693fdc1157ab72f982ebc8 Mon Sep 17 00:00:00 2001 From: Adam Kariv Date: Mon, 25 Dec 2023 11:05:29 +0200 Subject: [PATCH] Filter by chromonap status --- projects/chronomaps/src/app/data.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/chronomaps/src/app/data.service.ts b/projects/chronomaps/src/app/data.service.ts index 6fb75c5..ded4abf 100644 --- a/projects/chronomaps/src/app/data.service.ts +++ b/projects/chronomaps/src/app/data.service.ts @@ -331,7 +331,7 @@ export class DirectoryDatabase extends BaserowDatabase { this.url.set(keyValues.URL.value); }); this.getTable('Chronomaps').subscribe((chronomapsTable) => { - this.chronomaps.set(chronomapsTable?.rows.map((chronomap: any) => { + this.chronomaps.set(chronomapsTable?.rows.filter(row => row.Status?.value === 'Published').map((chronomap: any) => { const map = new ChronomapDatabase(chronomap, this.http); return map; }) || []);