Skip to content

Commit

Permalink
Camera: Error should be removed when new image arrives (#2059)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Gilles authored Apr 21, 2024
1 parent 7609bd4 commit 40a8ec8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion front/src/components/boxs/camera/Camera.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ class CameraBoxComponent extends Component {
updateDeviceStateWebsocket = payload => {
if (this.props.box.camera === payload.device) {
this.setState({
image: payload.last_value_string
image: payload.last_value_string,
error: false
});
}
};
Expand Down

0 comments on commit 40a8ec8

Please sign in to comment.