Skip to content

Commit

Permalink
Fix rendering of UDF errors in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
mwylde committed Dec 1, 2023
1 parent 8f3cc4c commit c5f68b8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions arroyo-console/src/routes/pipelines/CreatePipeline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -520,11 +520,7 @@ export function CreatePipeline() {
{localUdfs
.filter(u => u.errors?.length)
.map(u => {
const text = `"${u.errors!.join('\\n')}"`;
let content = text;
try {
content = JSON.parse(text);
} catch (e) {}
const content = u.errors!.join("\n").replaceAll('\\n', "\n");
return (
<Flex key={u.id} flexDirection={'column'} py={3} gap={2}>
<UdfLabel udf={u} />
Expand Down

0 comments on commit c5f68b8

Please sign in to comment.