We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bbd8f1 commit 35bee7aCopy full SHA for 35bee7a
frontend/src/components/Chat.tsx
@@ -53,7 +53,25 @@ function Message(props: {
53
<div className="cell-output" dangerouslySetInnerHTML={{ __html: text }}></div>
54
))}
55
56
- {(["message_raw", "message_error"].indexOf(props.type) !== -1) &&
+ {props.type == "message_error" &&
57
+ (props.showLoader ? (
58
+ <div>
59
+ {text} {props.showLoader ? <div className="loader"></div> : null}
60
+ </div>
61
+ ) : (
62
63
+ Execution Error:
64
+ <SyntaxHighlighter
65
+ {...props}
66
+ children={text}
67
+ wrapLongLines={true}
68
+ language={"python"}
69
+ PreTag="div"
70
+ />
71
72
+ ))}
73
+
74
+ {props.type == "message_raw" &&
75
(props.showLoader ? (
76
<div>
77
{text} {props.showLoader ? <div className="loader"></div> : null}
0 commit comments