mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
expose note hoisting to frontend API, closes #663
This commit is contained in:
@@ -411,11 +411,13 @@ class TabContext {
|
||||
}
|
||||
|
||||
async remove() {
|
||||
// sometimes there are orphan autocompletes after closing the tab
|
||||
this.cleanup();
|
||||
if (this.$tabContent) {
|
||||
// sometimes there are orphan autocompletes after closing the tab
|
||||
this.cleanup();
|
||||
|
||||
await this.saveNoteIfChanged();
|
||||
this.$tabContent.remove();
|
||||
await this.saveNoteIfChanged();
|
||||
this.$tabContent.remove();
|
||||
}
|
||||
}
|
||||
|
||||
cleanup() {
|
||||
|
||||
Reference in New Issue
Block a user