mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 19:36:12 +01:00
fix ordering of note contexts, fixes #2283
This commit is contained in:
@@ -71,7 +71,13 @@ class NoteContext extends Component {
|
||||
|
||||
getMainContext() {
|
||||
if (this.mainNtxId) {
|
||||
return appContext.tabManager.getNoteContextById(this.mainNtxId);
|
||||
try {
|
||||
return appContext.tabManager.getNoteContextById(this.mainNtxId);
|
||||
}
|
||||
catch (e) {
|
||||
this.mainNtxId = null;
|
||||
return this;
|
||||
}
|
||||
}
|
||||
else {
|
||||
return this;
|
||||
|
||||
Reference in New Issue
Block a user