summaryrefslogtreecommitdiffstats
path: root/webapp/components/admin_console/admin_sidebar_section.jsx
diff options
context:
space:
mode:
authorSaturnino Abril <saturnino.abril@gmail.com>2017-06-29 22:39:57 +0800
committerHarrison Healey <harrisonmhealey@gmail.com>2017-06-29 10:39:57 -0400
commit648f333850163efeac486c4b07eb47da415a9c98 (patch)
tree1b441666d3a58f39efb0cb5396ede217ed841c9a /webapp/components/admin_console/admin_sidebar_section.jsx
parente1168ab7cc9770ab71fda6994ee80ef0e64e15d7 (diff)
downloadchat-648f333850163efeac486c4b07eb47da415a9c98.tar.gz
chat-648f333850163efeac486c4b07eb47da415a9c98.tar.bz2
chat-648f333850163efeac486c4b07eb47da415a9c98.zip
[PLT-6496] Remove System Console and config settings for image height and width (#6688)
* remove System Console and config settings for image height and width * add constants and update config.json * updated as per review
Diffstat (limited to 'webapp/components/admin_console/admin_sidebar_section.jsx')
-rw-r--r--webapp/components/admin_console/admin_sidebar_section.jsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/webapp/components/admin_console/admin_sidebar_section.jsx b/webapp/components/admin_console/admin_sidebar_section.jsx
index e0f327da0..2a8ecab71 100644
--- a/webapp/components/admin_console/admin_sidebar_section.jsx
+++ b/webapp/components/admin_console/admin_sidebar_section.jsx
@@ -16,7 +16,7 @@ export default class AdminSidebarSection extends React.Component {
type: PropTypes.string,
parentLink: PropTypes.string,
subsection: PropTypes.bool,
- children: PropTypes.arrayOf(PropTypes.element),
+ children: PropTypes.node,
action: PropTypes.node,
onlyActiveOnIndex: PropTypes.bool
};
@@ -39,7 +39,7 @@ export default class AdminSidebarSection extends React.Component {
const link = this.getLink();
let clonedChildren = null;
- if (this.props.children.length > 0) {
+ if (this.props.children) {
clonedChildren = (
<ul className='nav nav__sub-menu subsections'>
{