Skip to content

Commit af960f6

Browse files
committed
Fix empty file not openning
1 parent b0314ba commit af960f6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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.50",
3+
"version": "0.1.51",
44
"main": "dist/main.js",
55
"typings": "dist/index.d.ts",
66
"files": [

src/components/FileEditor/FileEditor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ const FileEditor = ({
264264
})()}
265265
</StyledButtonsContainer>
266266
</StyledEditorMenu>
267-
{fileContent ? (
267+
{fileContent !== undefined ? (
268268
<>
269269
{(() => {
270270
for (const editor of extraEditors) {

0 commit comments

Comments
 (0)