Skip to content

Commit 4ce21ea

Browse files
committed
chore(compass-assistant): hide connection error entry point
1 parent d0cc085 commit 4ce21ea

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

packages/compass-connections/src/components/connection-status-notifications.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -207,10 +207,14 @@ const openConnectionFailedToast = ({
207207
}
208208
: undefined
209209
}
210-
onDebug={() => {
211-
closeToast(`connection-status--${failedToastId}`);
212-
onDebugClick?.();
213-
}}
210+
onDebug={
211+
onDebugClick
212+
? () => {
213+
closeToast(`connection-status--${failedToastId}`);
214+
onDebugClick();
215+
}
216+
: undefined
217+
}
214218
/>
215219
),
216220
variant: 'warning',

0 commit comments

Comments
 (0)