bug fix: translations do not load on /codeeditor

This commit is contained in:
fab-scm 2022-11-02 14:06:26 +01:00
parent 48be116f5b
commit 32303494f7

View File

@ -176,19 +176,20 @@ void loop() {
localStorage.getItem("ArduinoCode") localStorage.getItem("ArduinoCode")
? localStorage.getItem("ArduinoCode") ? localStorage.getItem("ArduinoCode")
: ` : `
#include <senseBoxIO.h> //needs to be always included #include <senseBoxIO.h> //needs to be always included
void setup () { void setup () {
} }
void loop() { void loop() {
}` }`
} }
value={fileContent} value={fileContent}
onMount={(editor, monaco) => { onMount={(editor, monaco) => {
editorRef.current = editor; editorRef.current = editor;
saveValue();
}} }}
/> />
</Grid> </Grid>