diff --git a/src/app/_modules/publications/list/publications-list.component.ts b/src/app/_modules/publications/list/publications-list.component.ts index 281df1d..c47a79d 100644 --- a/src/app/_modules/publications/list/publications-list.component.ts +++ b/src/app/_modules/publications/list/publications-list.component.ts @@ -50,11 +50,11 @@ export class PublicationsListComponent { add() { - this.formsService.createModel('publication', {extraProps: {page: this.page.id}}, this.listId); + this.formsService.createModel('publication', {extraProps: {page: this.page?.id}}, this.listId); } fetch(controls: any) { - controls.filters.page = this.page.id; + controls.filters.page = this.page?.id; let include = ['posters']; let params = {page: controls.page || 1, filters: JSON.stringify(controls.filters), include: include.join(',')}; this.publicationsService.list(params).subscribe(result => { diff --git a/src/app/_modules/search/page/search-page.component.html b/src/app/_modules/search/page/search-page.component.html index 1f78bbb..0241901 100644 --- a/src/app/_modules/search/page/search-page.component.html +++ b/src/app/_modules/search/page/search-page.component.html @@ -2,7 +2,7 @@