Skip to content

Commit

Permalink
fix loading metadata when GPS is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
Williangalvani committed Nov 2, 2023
1 parent 000d2fa commit 2021c6d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,11 @@ export default {
console.log('unable to load trajectory')
}
}
this.state.metadata = { startTime: this.dataExtractor.extractStartTime(this.state.messages.GPS) }
try {
this.state.metadata = { startTime: this.dataExtractor.extractStartTime(this.state.messages.GPS) }
} catch {
console.log('unable to load metadata')
}
Vue.delete(this.state.messages, 'AHR2')
Vue.delete(this.state.messages, 'POS')
Vue.delete(this.state.messages, 'GPS')
Expand Down

0 comments on commit 2021c6d

Please sign in to comment.