From 8743c40911c98fad781de631af0348d0120fc153 Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Thu, 22 Mar 2018 13:32:14 +0000 Subject: Use isEmpty --- packages/react-docs/src/components/documentation.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'packages/react-docs/src') diff --git a/packages/react-docs/src/components/documentation.tsx b/packages/react-docs/src/components/documentation.tsx index 67523dcc3..14fe175cf 100644 --- a/packages/react-docs/src/components/documentation.tsx +++ b/packages/react-docs/src/components/documentation.tsx @@ -248,26 +248,26 @@ export class Documentation extends React.Component {docSection.comment && } - {docSection.constructors.length > 0 && + {!_.isEmpty(docSection.constructors) && this.props.docsInfo.isVisibleConstructor(sectionName) && (

Constructor

{this._renderConstructors(docSection.constructors, sectionName, typeDefinitionByName)}
)} - {docSection.properties.length > 0 && ( + {!_.isEmpty(docSection.properties) && (

Properties

{propertyDefs}
)} - {docSection.methods.length > 0 && ( + {!_.isEmpty(docSection.methods) && (

Methods

{methodDefs}
)} - {docSection.functions.length > 0 && ( + {!_.isEmpty(docSection.functions) && (

Functions

{functionDefs}
-- cgit v1.2.3