Skip to content

Commit

Permalink
fix: wrong return error
Browse files Browse the repository at this point in the history
  • Loading branch information
jroehl committed Sep 3, 2022
1 parent fe0d295 commit 8e95a93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/classes/portals/FlowFact/v1/Estate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export class FlowFactEstateV1 extends Estate {
}

private async getAttachments(): Promise<Attachment[]> {
return this.getValue('value.pictures.estatepicture', []).map(
return this.getValue('value.pictures.estatepicture', []).map?.(
(attachment: any) =>
({
title: get(attachment, 'headline'),
Expand Down
2 changes: 1 addition & 1 deletion src/classes/portals/Immobilienscout24/Estate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export class Immobilienscout24Estate extends Estate {
}

private async getAttachments(): Promise<Attachment[]> {
return this.getValue('attachments', []).map(
return this.getValue('attachments', []).map?.(
(attachment: any) =>
({
title: get(attachment, 'title'),
Expand Down

0 comments on commit 8e95a93

Please sign in to comment.