add selected Board to settings and solve component rerender

This commit is contained in:
Mario Pesch
2022-09-23 11:31:44 +02:00
parent b212316b0b
commit 4565b4e482
27 changed files with 123 additions and 52 deletions
-1
View File
@@ -38,7 +38,6 @@ const CodeEditor = (props) => {
})
.then((response) => response.json())
.then((data) => {
console.log(data);
if (data.code === "Internal Server Error") {
setProgress(false);
setOpen(true);
-1
View File
@@ -89,7 +89,6 @@ class Compile extends Component {
})
.then((response) => response.json())
.then((data) => {
console.log(data);
if (data.code === "Internal Server Error") {
this.setState({
progress: false,
@@ -27,7 +27,6 @@ const SerialMonitor = () => {
if (value) {
// byte array to string: https://stackoverflow.com/a/37542820
const text = String.fromCharCode.apply(null, value);
console.log(text);
setSerialPortContent((prevContent) => [
...prevContent,
[new Date(), text],