mirror of
https://github.com/zadam/trilium.git
synced 2025-10-21 15:49:00 +02:00
chore(react/ribbon): fix a few type errors
This commit is contained in:
parent
8f69b87dd1
commit
b24d786933
@ -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 notePath = notePathRecord?.notePath ?? [];
|
||||||
const notePathString = useMemo(() => notePath.join("/"), [ notePath ]);
|
const notePathString = useMemo(() => notePath.join("/"), [ notePath ]);
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ import FNote from "../../entities/fnote";
|
|||||||
export interface TabContext {
|
export interface TabContext {
|
||||||
note: FNote | null | undefined;
|
note: FNote | null | undefined;
|
||||||
hidden: boolean;
|
hidden: boolean;
|
||||||
ntxId?: string | null | undefined;
|
ntxId?: string | null;
|
||||||
hoistedNoteId?: string;
|
hoistedNoteId?: string;
|
||||||
notePath?: string;
|
notePath?: string | null;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user