Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(client): build error due to null
Elian Doranc41fbe8e45d9
diff --git a/src/public/app/components/tab_manager.js b/src/public/app/components/tab_manager.jsindex 7a7b2f2cfb..46a0f9d96e 100644--- a/src/public/app/components/tab_manager.js+++ b/src/public/app/components/tab_manager.js@@ -248,7 +248,7 @@ export default class TabManager extends Component {await noteContext.setEmpty();}- async openEmptyTab(ntxId = null, hoistedNoteId = "root", mainNtxId = null) {+ async openEmptyTab(ntxId = null, hoistedNoteId = "root", mainNtxId) {const noteContext = new NoteContext(ntxId, hoistedNoteId, mainNtxId);const existingNoteContext = this.children.find((nc) => nc.ntxId === noteContext.ntxId);