From bd48d304c34bbf999dc8c458630397718eed5d6a Mon Sep 17 00:00:00 2001 From: enahum Date: Wed, 1 Jun 2016 15:11:19 -0300 Subject: PLT-3152 Fix System Console scroll (#3198) * PLT-3152 Fix System Console scroll * Fix direct url access --- webapp/components/admin_console/admin_console.jsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'webapp/components/admin_console') diff --git a/webapp/components/admin_console/admin_console.jsx b/webapp/components/admin_console/admin_console.jsx index 33868950b..682dbdeda 100644 --- a/webapp/components/admin_console/admin_console.jsx +++ b/webapp/components/admin_console/admin_console.jsx @@ -43,9 +43,12 @@ export default class AdminConsole extends React.Component { render() { const config = this.state.config; + if (!config) { + return
; + } if (config && Object.keys(config).length === 0 && config.constructor === 'Object') { return ( -
+
@@ -56,9 +59,8 @@ export default class AdminConsole extends React.Component { const children = React.cloneElement(this.props.children, { config: this.state.config }); - return ( -
+
-- cgit v1.2.3-1-g7c22