Skip to content

The open-source app everyone uses to manage agents at work

hide version until loaded

Sai Shankar8abfe894e342
diff --git a/ui/src/components/Layout.tsx b/ui/src/components/Layout.tsx
index 5c8f43d611..ab0977e22a 100644
--- a/ui/src/components/Layout.tsx
+++ b/ui/src/components/Layout.tsx
@@ -268,9 +268,9 @@ export function Layout() {
<BookOpen className="h-4 w-4 shrink-0" />
<span className="truncate">Documentation</span>
</a>
- <span className="px-2 text-xs text-muted-foreground shrink-0">
- {health?.version ? `v${health.version}` : "v?.?.?"}
- </span>
+ {health?.version && (
+ <span className="px-2 text-xs text-muted-foreground shrink-0">v{health.version}</span>
+ )}
<Button variant="ghost" size="icon-sm" className="text-muted-foreground shrink-0" asChild>
<Link
to="/instance/settings"
@@ -321,9 +321,9 @@ export function Layout() {
<BookOpen className="h-4 w-4 shrink-0" />
<span className="truncate">Documentation</span>
</a>
- <span className="px-2 text-xs text-muted-foreground shrink-0">
- {health?.version ? `v${health.version}` : "v?.?.?"}
- </span>
+ {health?.version && (
+ <span className="px-2 text-xs text-muted-foreground shrink-0">v{health.version}</span>
+ )}
<Button variant="ghost" size="icon-sm" className="text-muted-foreground shrink-0" asChild>
<Link
to="/instance/settings"