chore(react/ribbon): fix a few type errors

This commit is contained in:
Elian Doran 2025-08-22 21:58:35 +03:00
parent 8f69b87dd1
commit b24d786933
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View File

@ -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 ]);

View File

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