Skip to content

Commit f84dd7d

Browse files
committed
Fixed file deletion
1 parent 18b4fef commit f84dd7d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/views/editor/EditorView.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,8 @@ export default class EditorView extends JDOMComponent.unshadowed {
301301
'ti',
302302
'file-icon',
303303
computed(() => {
304+
if (!this.files.value[index].name)
305+
return 'ti-file'
304306
if (this.files.value[index].name === '.codebox')
305307
return 'ti-file-settings'
306308
else if (this.files.value[index].name === 'tsconfig.json')

0 commit comments

Comments
 (0)