Skip to content

Commit 5e2b70e

Browse files
committed
More tests
1 parent ed87089 commit 5e2b70e

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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": [

src/components/IdeInterface/IdeInterface.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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}

0 commit comments

Comments
 (0)