Skip to content

Commit

Permalink
TRA-4264 fix crash when switching services
Browse files Browse the repository at this point in the history
  • Loading branch information
RamiBerm authored Feb 6, 2022
1 parent fe8cb61 commit 3b60162
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/webview/src/components/endpointSchema.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ const SchemaAccordion: React.FC<SchemaAccordionProps> = ({header, key, hideOnSta
};

const EndpointSchema: React.FC<EndpointSchemaProps> = ({schema, isThemeDark}) => {

if (!schema) {
return <></>;
}

const requestBody = useMemo(() => JSON.stringify(getRequestBodySchemaForView(schema), null, 4), [schema]);

Expand Down

0 comments on commit 3b60162

Please sign in to comment.