Skip to content

Commit 48317c1

Browse files
tahierhussainclaude
andcommitted
fix: add text guard to prevent undefined error in troubleshoot button
Prevent button from rendering when socketError is a plain string, which would result in text being undefined. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 0064c30 commit 48317c1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

frontend/src/ide/chat-ai/DisplayErrorMessages.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const DisplayErrorMessages = memo(function DisplayErrorMessages({
5656
type={showAsWarning ? "warning" : "error"}
5757
className="width-100"
5858
description={
59-
!showAsWarning && onTroubleshoot ? (
59+
!showAsWarning && onTroubleshoot && text ? (
6060
<Button
6161
type="link"
6262
size="small"

0 commit comments

Comments
 (0)