Commit 2fb304c
authored
BUGFIX: Prevent division by zero in sparkline rendering (#39)
Prevent division by zero in sparkline rendering when `max` is 0 for whatever reason.
In this case a 0 value will be rendered now instead of crashing the whole content release.1 parent db29a0a commit 2fb304c
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
16 | 21 | | |
17 | 22 | | |
18 | 23 | | |
| |||
58 | 63 | | |
59 | 64 | | |
60 | 65 | | |
61 | | - | |
| 66 | + | |
0 commit comments