Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
chore(client): address requested changes
Elian Doran1feeb350ced9
diff --git a/apps/client/src/widgets/layout/Breadcrumb.tsx b/apps/client/src/widgets/layout/Breadcrumb.tsxindex 511ed2de07..a814fb13a5 100644--- a/apps/client/src/widgets/layout/Breadcrumb.tsx+++ b/apps/client/src/widgets/layout/Breadcrumb.tsx@@ -241,7 +241,7 @@ function buildNotePaths(noteContext: NoteContext) {}// When hoisted, display only the path starting with the hoisted note.- if (noteContext.hoistedNoteId !== "root") {+ if (noteContext.hoistedNoteId !== "root" && hoistedNotePos > -1) {output = output.slice(hoistedNotePos);}diff --git a/apps/client/src/widgets/react/hooks.tsx b/apps/client/src/widgets/react/hooks.tsxindex 535a797f5b..d01fb81561 100644--- a/apps/client/src/widgets/react/hooks.tsx+++ b/apps/client/src/widgets/react/hooks.tsx@@ -267,7 +267,7 @@ export function useTriliumOptions<T extends OptionNames>(...names: T[]) {* @returns a name with the given prefix and a random alpanumeric string appended to it.*/export function useUniqueName(prefix?: string) {- return useMemo(() => (prefix ? `${prefix }-` : "") + utils.randomString(10), [ prefix ]);+ return useMemo(() => (prefix ? `${prefix}-` : "") + utils.randomString(10), [ prefix ]);}export function useNoteContext() {