Skip to content

Commit

Permalink
Fix brightness & multilevel sliders on dashboard (#1137)
Browse files Browse the repository at this point in the history
Co-authored-by: Pierre-Gilles Leymarie <pierregilles.leymarie@gmail.com>
  • Loading branch information
atrovato and Pierre-Gilles authored Apr 22, 2021
1 parent ff0bfbb commit 2d1af7c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion front/src/actions/device.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function createActions(store) {
[deviceIndex]: {
features: {
[deviceFeatureIndex]: {
lastValue: {
last_value: {
$set: value
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const BrightnessDeviceType = ({ children, ...props }) => {
props.deviceIndex,
props.deviceFeatureIndex,
e.target.value,
props.deviceFeature.lastValue
props.deviceFeature.last_value
);
}

Expand All @@ -27,7 +27,7 @@ const BrightnessDeviceType = ({ children, ...props }) => {
minHeight: '30px'
}}
type="range"
value={props.deviceFeature.lastValue}
value={props.deviceFeature.last_value}
onChange={updateValue}
class="form-control custom-range"
step="1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const MultiLevelDeviceType = ({ children, ...props }) => {
props.deviceIndex,
props.deviceFeatureIndex,
e.target.value,
props.deviceFeature.lastValue
props.deviceFeature.last_value
);
}

Expand All @@ -36,7 +36,7 @@ const MultiLevelDeviceType = ({ children, ...props }) => {
minHeight: '30px'
}}
type="range"
value={props.deviceFeature.lastValue}
value={props.deviceFeature.last_value}
onChange={updateValue}
class="form-control custom-range"
step="1"
Expand Down

0 comments on commit 2d1af7c

Please sign in to comment.