Skip to content

Commit afe1b64

Browse files
committed
fix: onIconPathError
1 parent c36c612 commit afe1b64

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

site/src/modules/resources/AppLink/AppLink.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export const AppLink: FC<AppLinkProps> = ({ app, workspace, agent }) => {
6969
// longer block access to apps if they are unhealthy/initializing.
7070
let canClick = true;
7171
let icon = !iconError && (
72-
<BaseIcon app={app} onError={() => setIconError(true)} />
72+
<BaseIcon app={app} onIconPathError={() => setIconError(true)} />
7373
);
7474

7575
let primaryTooltip = "";

site/src/modules/resources/AppLink/BaseIcon.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@ import type { FC } from "react";
44

55
interface BaseIconProps {
66
app: WorkspaceApp;
7-
onError?: () => void;
7+
onIconPathError?: () => void;
88
}
99

10-
export const BaseIcon: FC<BaseIconProps> = ({ app, onError }) => {
10+
export const BaseIcon: FC<BaseIconProps> = ({ app, onIconPathError }) => {
1111
return app.icon ? (
1212
<img
1313
alt={`${app.display_name} Icon`}
1414
src={app.icon}
1515
style={{ pointerEvents: "none" }}
1616
onError={() => {
17-
onError?.();
17+
onIconPathError?.();
1818
}}
1919
/>
2020
) : (

0 commit comments

Comments
 (0)