Commit c4b11f985723b26fdef794fe578e2182fed71fc7
Committed by
GitHub
1 parent
49be7d1e
Add default value
Showing
1 changed file
with
1 additions
and
1 deletions
... | ... | @@ -63,7 +63,7 @@ export default class TbCanvasDigitalGauge { |
63 | 63 | } |
64 | 64 | |
65 | 65 | this.localSettings.showTicks = settings.showTicks || false; |
66 | - this.localSettings.ticksValue = settings.ticksValue; | |
66 | + this.localSettings.ticksValue = settings.ticksValue || []; | |
67 | 67 | this.localSettings.tickWidth = settings.tickWidth || 4; |
68 | 68 | this.localSettings.colorTicks = settings.colorTicks || '#666'; |
69 | 69 | ... | ... |