fix(client/type_widgets): empty tab not working when closing last tab

This commit is contained in:
Elian Doran
2025-11-09 20:41:29 +02:00
parent 7ba91b7a9d
commit 763fa0b515
2 changed files with 2 additions and 0 deletions

View File

@@ -265,6 +265,7 @@ export default class TabManager extends Component {
mainNtxId: string | null = null
): Promise<NoteContext> {
const noteContext = new NoteContext(ntxId, hoistedNoteId, mainNtxId);
noteContext.setEmpty();
const existingNoteContext = this.children.find((nc) => nc.ntxId === noteContext.ntxId);