Skip to content

Commit

Permalink
fix: set openingTimes property to fix no-network error
Browse files Browse the repository at this point in the history
  • Loading branch information
tjorbo committed Dec 12, 2023
1 parent 28ef410 commit ed8b3ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/services/api_service_dataport.js
Original file line number Diff line number Diff line change
Expand Up @@ -361,8 +361,9 @@ export class ApiServiceDataport {
})

Object.assign(institution, migrateOpeningHours(institutionDto))
if (!institution.openingTimes) institution.openingTimes = {}
if (institutionDto.specialOpeningHours) institution.openingTimes.description = institutionDto.specialOpeningHours
if (institutionDto.closedDays) {
if (institutionDto.closedDays && institutionDto.closedDays.length > 0) {
if (!institution.closedHolidays) institution.closedHolidays = []
institutionDto.closedDays.map(element => institution.closedHolidays.push(element.text))
}
Expand Down

0 comments on commit ed8b3ba

Please sign in to comment.