Skip to content

Commit

Permalink
fix(xy-pad): Default values can be undefined
Browse files Browse the repository at this point in the history
Make sure that undefined values will not kill the xy-pad. -
  • Loading branch information
TimPietrusky committed Oct 11, 2019
1 parent 950a21e commit a74da21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/dmx-fixture-property/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ class DmxFixtureProperty extends LitElement {
<xy-pad
width="180"
height="120"
currentX="${defaultValue(value.realX, 0)}"
currentY="${defaultValue(value.realY, 0)}"
currentX="${defaultValue(value === undefined ? undefined : value.realX, 0)}"
currentY="${defaultValue(value === undefined ? undefined : value.realY, 0)}"
maxX="180"
maxY="120"
labelX="pan"
Expand Down

0 comments on commit a74da21

Please sign in to comment.