mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-11 11:02:27 +08:00
fix(client): build error due to null
This commit is contained in:
parent
3855f0e75f
commit
c41fbe8e45
@ -248,7 +248,7 @@ export default class TabManager extends Component {
|
|||||||
await noteContext.setEmpty();
|
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 noteContext = new NoteContext(ntxId, hoistedNoteId, mainNtxId);
|
||||||
|
|
||||||
const existingNoteContext = this.children.find((nc) => nc.ntxId === noteContext.ntxId);
|
const existingNoteContext = this.children.find((nc) => nc.ntxId === noteContext.ntxId);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user