diff --git a/app/client/src/components/editor/ApiResponseView.tsx b/app/client/src/components/editor/ApiResponseView.tsx index 16dab691d8..fe96f93d3b 100644 --- a/app/client/src/components/editor/ApiResponseView.tsx +++ b/app/client/src/components/editor/ApiResponseView.tsx @@ -141,6 +141,8 @@ const ApiResponseView = (props: Props) => { {response.body && ( ` + height: ${props => props.height}px; overflow: auto; `; @@ -20,6 +13,8 @@ interface Props { value: string; onChange?: (value: string) => void; }; + language: string; + height: number; placeholder?: string; } @@ -29,10 +24,11 @@ const CodeEditor = (props: Props) => { minimap: { enabled: false }, readOnly: !props.input.onChange, }; + debugger; return ( - + { typeof value === "string" ? value : JSON.stringify(value, null, 2) }