fix ordering of note contexts, fixes #2283

This commit is contained in:
zadam
2021-10-27 21:32:03 +02:00
parent a7d3dafcf1
commit bcabe5786f
4 changed files with 16 additions and 4 deletions

View File

@@ -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;