Fix lint errors

This commit is contained in:
Gregory Schier
2025-06-04 11:33:10 -07:00
parent 021f2171d6
commit fcda6f8d32
7 changed files with 20 additions and 18 deletions

View File

@@ -125,8 +125,8 @@ function ActualEventStreamViewer({ response }: Props) {
function FormattedEditor({ text, language }: { text: string; language: EditorProps['language'] }) {
const formatted = useFormatText({ text, language, pretty: true });
if (formatted.data == null) return null;
return <Editor readOnly defaultValue={formatted.data} language={language} stateKey={null} />;
if (formatted == null) return null;
return <Editor readOnly defaultValue={formatted} language={language} stateKey={null} />;
}
function EventRow({