Skip to content

Commit

Permalink
Checking for existing displayedValue
Browse files Browse the repository at this point in the history
Check if displayed value exist rather then if number evaluates to true. Enables the user to set the displayed value to zero.
  • Loading branch information
Wurm3 authored and kinow committed Oct 25, 2019
1 parent 20cf92c commit 9ec10c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/project/widgets/graph/graph.coffee
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class Dashing.Graph extends Dashing.Widget

@accessor 'current', ->
return @get('displayedValue') if @get('displayedValue')
return @get('displayedValue') if @get('displayedValue')?
points = @get('points')
if points
points[points.length - 1].y
Expand Down

0 comments on commit 9ec10c8

Please sign in to comment.