fix(client): regression in new tab

This commit is contained in:
Elian Doran 2025-02-07 22:37:43 +02:00
parent cecd7eccad
commit 5552db034b
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -256,7 +256,7 @@ type EventMappings = {
};
noteSwitched: {
noteContext: NoteContext;
notePath: string | null;
notePath?: string | null;
};
noteSwitchedAndActivatedEvent: {
noteContext: NoteContext;

View File

@ -156,7 +156,7 @@ export default class NoteDetailWidget extends NoteContextAwareWidget {
}
// this is happening in update(), so note has been already set, and we need to reflect this
if (this.noteContext && this.noteContext.notePath) {
if (this.noteContext) {
await typeWidget.handleEvent("noteSwitched", {
noteContext: this.noteContext,
notePath: this.noteContext.notePath