File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
src/components/FileEditor Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " jderobot-ide-interface" ,
3- "version" : " 0.2.60 " ,
3+ "version" : " 0.2.61 " ,
44 "main" : " dist/main.js" ,
55 "typings" : " dist/index.d.ts" ,
66 "files" : [
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ const FileEditor = ({
7373 // Autosave data
7474 const fileToSaveRef = useRef < Entry | undefined > ( undefined ) ;
7575 const fileContentRef = useRef < string | undefined > ( undefined ) ;
76- const fileLanguageRef = useRef < string | undefined > ( "textplain" ) ;
76+ const fileLanguageRef = useRef < string > ( "textplain" ) ;
7777
7878 const setFileToSave = ( data ?: Entry ) => {
7979 fileToSaveRef . current = data ;
@@ -85,7 +85,7 @@ const FileEditor = ({
8585 _setFileContent ( data ) ;
8686 } ;
8787
88- const setLanguage = ( language ? : string ) => {
88+ const setLanguage = ( language : string ) => {
8989 fileLanguageRef . current = language ;
9090 _setLanguage ( language ) ;
9191 } ;
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ const FileEditor = ({
4747 fileContent : string ;
4848 setFileContent : Function ;
4949 saveFile : Function ;
50- language ? : string ;
50+ language : string ;
5151 zoomLevel : number ;
5252 extraSnippets ?: ExtraSnippets ;
5353} ) => {
You can’t perform that action at this time.
0 commit comments