From b24d78693364a3380277209635e85420d9a542d1 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Fri, 22 Aug 2025 21:58:35 +0300 Subject: [PATCH] chore(react/ribbon): fix a few type errors --- apps/client/src/widgets/ribbon/NotePathsTab.tsx | 2 +- apps/client/src/widgets/ribbon/ribbon-interface.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/client/src/widgets/ribbon/NotePathsTab.tsx b/apps/client/src/widgets/ribbon/NotePathsTab.tsx index c5017af09..469f32430 100644 --- a/apps/client/src/widgets/ribbon/NotePathsTab.tsx +++ b/apps/client/src/widgets/ribbon/NotePathsTab.tsx @@ -54,7 +54,7 @@ export default function NotePathsTab({ note, hoistedNoteId, notePath }: TabConte ) } -function NotePath({ currentNotePath, notePathRecord }: { currentNotePath: string, notePathRecord?: NotePathRecord }) { +function NotePath({ currentNotePath, notePathRecord }: { currentNotePath?: string | null, notePathRecord?: NotePathRecord }) { const notePath = notePathRecord?.notePath ?? []; const notePathString = useMemo(() => notePath.join("/"), [ notePath ]); diff --git a/apps/client/src/widgets/ribbon/ribbon-interface.ts b/apps/client/src/widgets/ribbon/ribbon-interface.ts index 1165447e2..6fa15edc5 100644 --- a/apps/client/src/widgets/ribbon/ribbon-interface.ts +++ b/apps/client/src/widgets/ribbon/ribbon-interface.ts @@ -3,7 +3,7 @@ import FNote from "../../entities/fnote"; export interface TabContext { note: FNote | null | undefined; hidden: boolean; - ntxId?: string | null | undefined; + ntxId?: string | null; hoistedNoteId?: string; - notePath?: string; + notePath?: string | null; }