Skip to content

Commit d5eff1c

Browse files
committed
Fix when icon is not available
1 parent a3f62d1 commit d5eff1c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

site/src/pages/WorkspacePage/AppStatuses.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import {
2222
ExternalLinkIcon,
2323
FileIcon,
2424
HourglassIcon,
25+
LayoutGridIcon,
2526
TriangleAlertIcon,
2627
} from "lucide-react";
2728
import { useAppLink } from "modules/apps/useAppLink";
@@ -264,7 +265,7 @@ const AppLink: FC<AppLinkProps> = ({ app, agent, workspace }) => {
264265
target="_blank"
265266
rel="noreferrer"
266267
>
267-
<ExternalImage src={app.icon} />
268+
{app.icon ? <ExternalImage src={app.icon} /> : <LayoutGridIcon />}
268269
{link.label}
269270
</a>
270271
</Button>

0 commit comments

Comments
 (0)