We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49969eb commit df63c21Copy full SHA for df63c21
1 file changed
src/components/ast/index.tsx
@@ -17,8 +17,6 @@ export const AST: FC = () => {
17
return <ErrorState message={message} />;
18
}
19
20
- const ast = JSON.stringify(result.ast, null, 2);
21
-
22
if (astView === "tree") {
23
if (result.ast === null) {
24
return null;
@@ -42,5 +40,5 @@ export const AST: FC = () => {
42
40
);
43
41
44
45
- return <Editor readOnly value={ast} />;
+ return <Editor readOnly value={JSON.stringify(result.ast, null, 2)} />;
46
};
0 commit comments