Skip to content

Commit

Permalink
Dont splice
Browse files Browse the repository at this point in the history
  • Loading branch information
Magnus Larsson committed Apr 20, 2020
1 parent c5ec6bf commit a20fa67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dist/vasttrafik-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ class VasttrafikCard extends LitElement {
}

const entities = config.entities.map(entity => {
if (typeof config.entities[i] === 'string') {
return {'id': config.entities[i], 'delay': 0};
if (typeof entity === 'string') {
return {'id': entity, 'delay': 0};
} else {
return Object.assign({}, entity);
}
Expand Down

0 comments on commit a20fa67

Please sign in to comment.