ensure that the correct xml-file is displayed in the workspace

This commit is contained in:
Delucse 2020-09-30 09:20:29 +02:00
parent 8991e2b40b
commit f7a0e7594d

View File

@ -134,7 +134,8 @@ class BlocklyExample extends Component {
{this.state.checked && !this.props.task ?
<FormHelperText style={{lineHeight: 'initial'}}>Anmerkung: Man kann den initialen Setup()- bzw. Endlosschleifen()-Block löschen. Zusätzlich ist es möglich u.a. nur einen beliebigen Block auszuwählen, ohne dass dieser als deaktiviert dargestellt wird.</FormHelperText>
: null}
{this.state.checked ? (() => {
// ensure that the correct xml-file is displayed in the workspace
{this.state.checked && this.state.xml? (() => {
return(
<div style={{marginTop: '10px'}}>
<Grid container className={!this.props.value || this.props.error ? this.props.classes.errorBorder : null}>