diff --git a/src/app/shared/services/model-util.service.ts b/src/app/shared/services/model-util.service.ts index 6324515a7..b950d1107 100644 --- a/src/app/shared/services/model-util.service.ts +++ b/src/app/shared/services/model-util.service.ts @@ -234,7 +234,7 @@ export class ModelUtilsService { } getYearRange(startYear, endYear) { - return [startYear, endYear].filter((year) => year > 0).join(' - '); + return (startYear > 0) ? [startYear, endYear > 0 ? endYear : ''].join(' - ') : []; } getDateRange(startDate, endDate) {