diff --git a/src/templates/Swagger/ResponseExample.jsx b/src/templates/Swagger/ResponseExample.jsx index 579a2cf8..1ac5a876 100644 --- a/src/templates/Swagger/ResponseExample.jsx +++ b/src/templates/Swagger/ResponseExample.jsx @@ -7,35 +7,34 @@ const ResponseExample = ({ examples }) => { const jsonExample = examples['application/json'] const plainText = examples['text/plain'] - if (typeof document !== `undefined`) { - if (jsonExample) { - return ( -
- {typeof jsonExample === 'boolean' ? (
- {JSON.stringify(jsonExample)}
- ) : (
-
- )}
-
- {plainText}
-
+ {typeof jsonExample === 'boolean' ? (
+ {JSON.stringify(jsonExample)}
+ ) : (
+
+ )}
+
+ {plainText}
+