mirror of
https://github.com/zadam/trilium.git
synced 2025-11-07 11:16:02 +08:00
chore(react/ribbon): fix a few type errors
This commit is contained in:
parent
8f69b87dd1
commit
b24d786933
2 changed files with 3 additions and 3 deletions
|
|
@ -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 ]);
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue