Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

fix(desktop): fix tsconfig path alias and AppLink children type error

Naiyuan Qing784111a49811
diff --git a/apps/desktop/src/renderer/src/components/app-sidebar.tsx b/apps/desktop/src/renderer/src/components/app-sidebar.tsx
index 22d4ed8960..c22d9c1bae 100644
--- a/apps/desktop/src/renderer/src/components/app-sidebar.tsx
+++ b/apps/desktop/src/renderer/src/components/app-sidebar.tsx
@@ -189,7 +189,7 @@ export function AppSidebar() {
<SidebarMenuItem key={item.href}>
<SidebarMenuButton
isActive={isActive}
- render={<AppLink href={item.href} />}
+ render={<AppLink href={item.href}>{null}</AppLink>}
className="text-muted-foreground hover:not-data-active:bg-sidebar-accent/70 data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground"
>
<item.icon />
@@ -216,7 +216,7 @@ export function AppSidebar() {
<SidebarMenuItem key={item.href}>
<SidebarMenuButton
isActive={isActive}
- render={<AppLink href={item.href} />}
+ render={<AppLink href={item.href}>{null}</AppLink>}
className="text-muted-foreground hover:not-data-active:bg-sidebar-accent/70 data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground"
>
<item.icon />
diff --git a/apps/desktop/tsconfig.web.json b/apps/desktop/tsconfig.web.json
index 9c16b661b2..844815cae3 100644
--- a/apps/desktop/tsconfig.web.json
+++ b/apps/desktop/tsconfig.web.json
@@ -11,7 +11,7 @@
"jsx": "react-jsx",
"baseUrl": ".",
"paths": {
- "@renderer/*": [
+ "@/*": [
"src/renderer/src/*"
]
}