diff options
-rw-r--r-- | ui.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ui.js b/ui.js index cfb3e87..60d9050 100644 --- a/ui.js +++ b/ui.js @@ -4023,6 +4023,10 @@ class NotesTextEditor extends TuiTextEditor { } async save() { + if (!this.openedItem || !this.openedPath) { + return + } + const text = this.getSourceText() try { await writeFile(this.openedPath, text) |