From a870c03f66e988230cbd97cca99b4de2200e229a Mon Sep 17 00:00:00 2001 From: amazon-meaisiah Date: Thu, 5 Mar 2020 15:51:35 -0800 Subject: [PATCH] Hide description field when no description exists --- dev-portal/src/components/SwaggerUiLayout.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dev-portal/src/components/SwaggerUiLayout.jsx b/dev-portal/src/components/SwaggerUiLayout.jsx index 85694a662..693d542f6 100644 --- a/dev-portal/src/components/SwaggerUiLayout.jsx +++ b/dev-portal/src/components/SwaggerUiLayout.jsx @@ -41,7 +41,9 @@ const InfoReplacement = observer(({ specSelectors }) => {

Version

)}

Endpoint

-

Description

+ {store.api.swagger.info.description ? ( +

Description

+ ) : null} {/*

Usage Plan

*/}