Merge branch '84-small-fix' into 'dev'

fixed device settings on scenes

Closes #84

See merge request sa4-2020/the-sanmarinoes/frontend!98
This commit is contained in:
Andrea Brites Marto 2020-04-27 17:02:31 +02:00
commit f6c8379fa0

View file

@ -157,7 +157,7 @@ class Device extends React.Component {
</Grid.Column>
)}
</Grid>
{this.props.stateOrDevice ? (
{this.props.stateOrDevice && this.props.tab === "Devices" ? (
<DeviceSettingsModal
ref={this.modalRef}
id={this.props.stateOrDevice.id}