diff --git a/src/webview/src/components/endpointSchema.tsx b/src/webview/src/components/endpointSchema.tsx index b0ccad4..7634d70 100644 --- a/src/webview/src/components/endpointSchema.tsx +++ b/src/webview/src/components/endpointSchema.tsx @@ -42,7 +42,9 @@ const SchemaAccordion: React.FC = ({header, key, hideOnSta }; const EndpointSchema: React.FC = ({schema, isThemeDark}) => { - + if (!schema) { + return <>; + } const requestBody = useMemo(() => JSON.stringify(getRequestBodySchemaForView(schema), null, 4), [schema]);