From dd379bf18d52402c342a0ba0f99cf680cc380521 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Wed, 25 Jun 2025 18:30:44 +0300 Subject: [PATCH] refactor(book/table): fix some lack of generics --- apps/client/src/services/note_list_renderer.ts | 2 +- apps/client/src/widgets/note_list.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/client/src/services/note_list_renderer.ts b/apps/client/src/services/note_list_renderer.ts index a55e93c8a..04dc5b132 100644 --- a/apps/client/src/services/note_list_renderer.ts +++ b/apps/client/src/services/note_list_renderer.ts @@ -10,7 +10,7 @@ export type ViewTypeOptions = "list" | "grid" | "calendar" | "table"; export default class NoteListRenderer { private viewType: ViewTypeOptions; - public viewMode: ViewMode | null; + public viewMode: ViewMode | null; constructor($parent: JQuery, parentNote: FNote, noteIds: string[], showNotePath: boolean = false) { this.viewType = this.#getViewType(parentNote); diff --git a/apps/client/src/widgets/note_list.ts b/apps/client/src/widgets/note_list.ts index 73ebb358d..ba1a028f2 100644 --- a/apps/client/src/widgets/note_list.ts +++ b/apps/client/src/widgets/note_list.ts @@ -36,7 +36,7 @@ export default class NoteListWidget extends NoteContextAwareWidget { private isIntersecting?: boolean; private noteIdRefreshed?: string; private shownNoteId?: string | null; - private viewMode?: ViewMode | null; + private viewMode?: ViewMode | null; isEnabled() { return super.isEnabled() && this.noteContext?.hasNoteList();