Skip to content

Commit

Permalink
Plotly: fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Williangalvani committed Sep 7, 2020
1 parent 6796eb9 commit fd4bcb2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Plotly.vue
Original file line number Diff line number Diff line change
Expand Up @@ -520,11 +520,11 @@ export default {
// let RE = /(?<!\.)\b[A-Z][A-Z0-9_]+\b/g
let fields = this.findMessagesInExpression(expression1)
fields = fields === null ? [] : fields
let messages = fields.lenght !== 0 ? (fields.map(field => field.split('.')[0])) : []
let messages = fields.length !== 0 ? (fields.map(field => field.split('.')[0])) : []
// use time of first message for now
let x
if (messages.lenght > 0) {
if (messages.length > 0) {
x = this.state.messages[messages[0]].time_boot_ms
} else {
try {
Expand Down

0 comments on commit fd4bcb2

Please sign in to comment.