Skip to content

Commit

Permalink
fix: file downloads from tree editor
Browse files Browse the repository at this point in the history
Done some testing and this change doesn't seem to break any other systems
  • Loading branch information
Joelant05 committed Sep 12, 2022
1 parent 91319ce commit 77d4b37
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/components/Editors/TreeEditor/Tab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,7 @@ export class TreeTab extends FileTab {
await super.setup()
}
async getFile() {
return new File(
[JSON.stringify(this.treeEditor.toJsonString())],
this.name
)
return new File([this.treeEditor.toJsonString()], this.name)
}

updateCache() {
Expand Down

0 comments on commit 77d4b37

Please sign in to comment.