|
|
@@ -417,7 +417,7 @@ const Item: FC<ItemProps> = (props: ItemProps) => {
|
|
|
// Icon that draw attention from users for some actions
|
|
|
const shouldShowAttentionIcon = page.processData != null ? shouldRecoverPagePaths(page.processData) : false;
|
|
|
|
|
|
- const path = page.path === '/' ? '/' : `/${page._id}`;
|
|
|
+ const pathPath = page.path === '/' ? '/' : `/${page._id}`;
|
|
|
|
|
|
return (
|
|
|
<div
|
|
|
@@ -470,7 +470,7 @@ const Item: FC<ItemProps> = (props: ItemProps) => {
|
|
|
</>
|
|
|
)}
|
|
|
|
|
|
- <Link href={path} prefetch={false}>
|
|
|
+ <Link href={pathPath} prefetch={false}>
|
|
|
<a className="grw-pagetree-title-anchor flex-grow-1">
|
|
|
<p className={`text-truncate m-auto ${page.isEmpty && 'grw-sidebar-text-muted'}`}>{nodePath.basename(page.path ?? '') || '/'}</p>
|
|
|
</a>
|