Skip to content

Commit

Permalink
Fix getredash#185: when y value is null, convert it to 0.
Browse files Browse the repository at this point in the history
  • Loading branch information
arikfr committed Apr 25, 2014
1 parent d26b822 commit 2e01d57
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rd_ui/app/scripts/services/resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,10 @@
xValue = value;
point[type] = value;
}

if (type == 'y') {
if (value == null) {
value = 0;
}
yValues[name] = value;
point[type] = value;
}
Expand Down

0 comments on commit 2e01d57

Please sign in to comment.