rewrite board check

This commit is contained in:
fbruc03 2022-11-15 16:30:13 +01:00
parent 5974608fd8
commit 2de54c0e9b

View File

@ -29,7 +29,7 @@ class DeviceSeclection extends Component {
constructor(props) {
super(props);
this.state = {
open: true,
open: props.selectedBoard ? false : true,
selectedBoard: "",
saveSettings: false,
@ -58,11 +58,6 @@ class DeviceSeclection extends Component {
};
render() {
const board = this.props.selectedBoard;
if (board) {
return null;
}
else {
return (
<Dialog
style={{ zIndex: 9999999 }}
@ -141,7 +136,6 @@ class DeviceSeclection extends Component {
</Dialog>
);
}
}
}
DeviceSeclection.propTypes = {