rewrite board check
This commit is contained in:
parent
5974608fd8
commit
2de54c0e9b
@ -29,7 +29,7 @@ class DeviceSeclection extends Component {
|
|||||||
constructor(props) {
|
constructor(props) {
|
||||||
super(props);
|
super(props);
|
||||||
this.state = {
|
this.state = {
|
||||||
open: true,
|
open: props.selectedBoard ? false : true,
|
||||||
selectedBoard: "",
|
selectedBoard: "",
|
||||||
saveSettings: false,
|
saveSettings: false,
|
||||||
|
|
||||||
@ -58,11 +58,6 @@ class DeviceSeclection extends Component {
|
|||||||
};
|
};
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const board = this.props.selectedBoard;
|
|
||||||
if (board) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return (
|
return (
|
||||||
<Dialog
|
<Dialog
|
||||||
style={{ zIndex: 9999999 }}
|
style={{ zIndex: 9999999 }}
|
||||||
@ -142,7 +137,6 @@ class DeviceSeclection extends Component {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
DeviceSeclection.propTypes = {
|
DeviceSeclection.propTypes = {
|
||||||
pageVisits: PropTypes.number.isRequired,
|
pageVisits: PropTypes.number.isRequired,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user