Skip to content

Commit

Permalink
Plotly: allow using hidden field 'time_boot_ms' in expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
Williangalvani committed Jan 4, 2022
1 parent 9df6ada commit 295e404
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Plotly.vue
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ export default {
return [false, `invalid message: ${message}`]
}
if (field !== undefined) {
if (this.state.messageTypes[message].expressions.indexOf(field) < 0) {
if (field !== 'time_boot_ms' && this.state.messageTypes[message].expressions.indexOf(field) < 0) {
console.log('ERROR: attempted to plot unavailable field: ' + field)
return [false, `invalid field: ${message}.${field}`]
}
Expand Down

0 comments on commit 295e404

Please sign in to comment.