Spaces:
Runtime error
Runtime error
Update frontend/src/components/playground.tsx
Browse files
frontend/src/components/playground.tsx
CHANGED
|
@@ -37,6 +37,10 @@ export function Playground() {
|
|
| 37 |
const date = new Date(message.createdAt).toLocaleTimeString(
|
| 38 |
undefined,
|
| 39 |
dateOptions
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
);
|
| 41 |
return (
|
| 42 |
<div key={message.id} className="flex items-start space-x-2">
|
|
|
|
| 37 |
const date = new Date(message.createdAt).toLocaleTimeString(
|
| 38 |
undefined,
|
| 39 |
dateOptions
|
| 40 |
+
|
| 41 |
+
if (!message.output.trim()) {
|
| 42 |
+
return null;
|
| 43 |
+
}
|
| 44 |
);
|
| 45 |
return (
|
| 46 |
<div key={message.id} className="flex items-start space-x-2">
|