diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/AppPublisherBase/BaseLayout.jsx b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/AppPublisherBase/BaseLayout.jsx index e0c8b905f1..eb64ab434a 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/AppPublisherBase/BaseLayout.jsx +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/src/main/resources/publisher/src/components/AppPublisherBase/BaseLayout.jsx @@ -19,7 +19,6 @@ import PropTypes from 'prop-types'; import React, {Component} from 'react'; import {withRouter} from 'react-router-dom'; -import Axios from 'axios'; import AuthHandler from "../../api/authHandler"; import {Button, Col, Container, Input, Row,} from 'reactstrap'; import ApplicationCreate from '../Application/Create/ApplicationCreate'; @@ -50,7 +49,7 @@ class BaseLayout extends Component { } componentWillMount() { - + this.setState({user: this.props.user}); } handleApplicationClick() { @@ -86,29 +85,43 @@ class BaseLayout extends Component { } render() { + const userName = this.state.user._userName[0]; return (
-
- -