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; }