Skip to content

Commit ff6f7fa

Browse files
committed
Add output to export formats
1 parent 882f726 commit ff6f7fa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/Output.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ export default function Output({
2525
) => void;
2626
data: FormProps<any, RJSFSchema, any>["schema"];
2727
}) {
28+
// Enrich the data with the output.
29+
data = { ...data, output: output.default };
30+
2831
return (
2932
<>
3033
<Card bg={"light"} className="mb-4">
@@ -49,6 +52,7 @@ export default function Output({
4952
code={JSON.stringify(data, null, 2)}
5053
language={"json"}
5154
title="JSON"
55+
wrapLongLines={false}
5256
/>
5357
</>
5458
)}

0 commit comments

Comments
 (0)