File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
src/components/IdeInterface Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " jderobot-ide-interface" ,
3- "version" : " 0.1.82 " ,
3+ "version" : " 0.1.83 " ,
44 "main" : " dist/main.js" ,
55 "typings" : " dist/index.d.ts" ,
66 "files" : [
Original file line number Diff line number Diff line change @@ -70,7 +70,6 @@ const IdeInterface = ({
7070 var [ currentFile , setCurrentFile ] = useState < Entry | undefined > ( undefined ) ;
7171
7272 if ( baseFile && options ?. editor ?. onlyOneFile ) {
73- currentFile = baseFile
7473 setCurrentFile = ( ) => { }
7574 }
7675
@@ -101,7 +100,7 @@ const IdeInterface = ({
101100 { explorers . map ( ( explorer ) => (
102101 < Explorer
103102 setCurrentFile = { setCurrentFile }
104- currentFile = { currentFile }
103+ currentFile = { baseFile && options ?. editor ?. onlyOneFile ? baseFile : currentFile }
105104 project = { project }
106105 api = { explorer }
107106 />
@@ -111,7 +110,7 @@ const IdeInterface = ({
111110 < StyledIdeVertContainer bgColor = { theme . palette ?. primary } >
112111 < StyledIdeContainer bgColor = { theme . palette ?. background } >
113112 < FileEditor
114- currentFile = { currentFile }
113+ currentFile = { baseFile && options ?. editor ?. onlyOneFile ? baseFile : currentFile }
115114 changeCurrentFile = { setCurrentFile }
116115 currentProjectname = { project }
117116 autosave = { true }
You can’t perform that action at this time.
0 commit comments