Skip to content

Commit

Permalink
added ? to fix "cannot read coordinates of undefined" (#258)
Browse files Browse the repository at this point in the history
Co-authored-by: August Andersen <[email protected]>
  • Loading branch information
augusthjerrild and August Andersen authored Sep 17, 2024
1 parent a280b45 commit fc3c69e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/csv-generator.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ export class CsvGeneratorService {
`${name},` +
`${id},` +
`${type},` +
`${location.coordinates[1] ?? ""},` +
`${location.coordinates[0] ?? ""},` +
`${location?.coordinates[1] ?? ""},` +
`${location?.coordinates[0] ?? ""},` +
`${commentOnLocation ?? ""},` +
`${comment ?? ""},` +
`${device.deviceModel?.id ?? ""},` +
Expand Down

0 comments on commit fc3c69e

Please sign in to comment.