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 }} | ||||||
| @ -141,7 +136,6 @@ class DeviceSeclection extends Component { | |||||||
|       </Dialog> |       </Dialog> | ||||||
|     ); |     ); | ||||||
|   } |   } | ||||||
|   } |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| DeviceSeclection.propTypes = { | DeviceSeclection.propTypes = { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user