Skip to content

Commit

Permalink
fixed #152 showing zero lightning count when lightning count is null
Browse files Browse the repository at this point in the history
  • Loading branch information
mKainzbauer committed May 26, 2024
1 parent df848b4 commit 924d4db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skins/Bootstrap/js/charts.js
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ function getSeriesConfig(seriesConfig, series, colors) {
for (let referencedData of weewxData[dataReference]) {
if (referencedData[0] === entry[0]) {
entry.push(referencedData[1]);
if (referencedData[1] === 0) {
if (referencedData[1] === 0 || referencedData[1] === null) {
entry[1] = null;
}
}
Expand Down

0 comments on commit 924d4db

Please sign in to comment.