Skip to content

Commit

Permalink
Filter by chromonap status
Browse files Browse the repository at this point in the history
  • Loading branch information
akariv committed Dec 25, 2023
1 parent 899db80 commit d19df54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/chronomaps/src/app/data.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}) || []);
Expand Down

0 comments on commit d19df54

Please sign in to comment.