diff --git a/apps/client/src/services/link.ts b/apps/client/src/services/link.ts index a596e7136..79bc18c2a 100644 --- a/apps/client/src/services/link.ts +++ b/apps/client/src/services/link.ts @@ -99,7 +99,7 @@ async function createLink(notePath: string | undefined, options: CreateLinkOptio const viewMode = viewScope.viewMode || "default"; let linkTitle = options.title; - if (!linkTitle) { + if (linkTitle === undefined) { if (viewMode === "attachments" && viewScope.attachmentId) { const attachment = await froca.getAttachment(viewScope.attachmentId); diff --git a/apps/client/src/widgets/Breadcrumb.tsx b/apps/client/src/widgets/Breadcrumb.tsx index 945f55e64..18ec9e845 100644 --- a/apps/client/src/widgets/Breadcrumb.tsx +++ b/apps/client/src/widgets/Breadcrumb.tsx @@ -24,10 +24,13 @@ export default function Breadcrumb() { } function BreadcrumbItem({ notePath }: { notePath: string }) { + const isRootNote = (notePath === "root"); return ( ) }