resolve warnings

This commit is contained in:
Mario Pesch
2022-02-18 12:20:22 +01:00
parent a34e0bbb5d
commit 8620a452a3
13 changed files with 492 additions and 465 deletions
@@ -41,8 +41,6 @@ import FormControl from "@material-ui/core/FormControl";
import Select from "@material-ui/core/Select";
import * as Blockly from "blockly";
import MarkdownEditor from "./MarkdownEditor";
const styles = (theme) => ({
backdrop: {
zIndex: theme.zIndex.drawer + 1,
@@ -285,21 +283,6 @@ class Builder extends Component {
// optional
newTutorial.append(`steps[${i}][xml]`, step.xml);
}
if (step.media) {
// optional
if (step.media.youtube) {
newTutorial.append(
`steps[${i}][media][youtube]`,
step.media.youtube
);
}
if (step.media.picture) {
newTutorial.append(
`steps[${i}][media][picture]`,
step.media.picture
);
}
}
});
return newTutorial;
}