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 957d230
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 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
3 changes: 2 additions & 1 deletion docker/build_base/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

[workspace]
resolver = "2"

members = [
"pipeline",
"types",
Expand Down

0 comments on commit 957d230

Please sign in to comment.