Skip to content

Commit

Permalink
fix property
Browse files Browse the repository at this point in the history
  • Loading branch information
oyve committed Jun 26, 2021
1 parent 6a77acd commit eaf7214
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion map.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function mapProperties(json) {

const history = (json, hour) => {
let pressure = json.history.find((h) => h.hour === hour).pressure;
return pressure !== null ? validateProperty(pressure) : null;
return pressure !== null ? validateProperty(pressure.meta.value) : null;
}

const defaultPropertyValue = null;
Expand Down

0 comments on commit eaf7214

Please sign in to comment.