various becca migration fixes

This commit is contained in:
zadam
2021-05-11 22:00:16 +02:00
parent 5d58520949
commit 8417d4a4ea
9 changed files with 336 additions and 309 deletions

View File

@@ -102,8 +102,8 @@ class TabContext extends Component {
/** @property {NoteShort} */
get note() {
if (this.noteId && !(this.noteId in froca.notes)) {
logError(`Cannot find tabContext's note id='${this.noteId}'`);
if (!this.noteId || !(this.noteId in froca.notes)) {
return null;
}
return froca.notes[this.noteId];