Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
callemand committed Jun 29, 2023
1 parent ae9d1ba commit 23ad511
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions front/src/components/boxs/device-in-room/EditDevices.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,18 +67,16 @@ class EditDevices extends Component {
refreshSelectedOptions = async props => {
const selectedDeviceFeaturesOptions = [];
if (this.state.deviceOptions) {


this.state.deviceOptions.forEach((deviceOption) => {
deviceOption.options.forEach((featureOption) => {
this.state.deviceOptions.forEach(deviceOption => {
deviceOption.options.forEach(featureOption => {
if (props.box.device_features && props.box.device_features.indexOf(featureOption.value) !== -1) {
selectedDeviceFeaturesOptions.push(featureOption);
}
})
})
});
});
}
await this.setState({ selectedDeviceFeaturesOptions });
}
};

componentDidMount() {
this.getDeviceFeatures();
Expand Down

0 comments on commit 23ad511

Please sign in to comment.