mirror of
https://github.com/strapi/strapi.git
synced 2025-11-04 20:07:19 +00:00
Fix showLeftMenu bug in admin plugin
This commit is contained in:
parent
b1d2ad7472
commit
50cbeb5486
@ -60,7 +60,7 @@ export class AdminPage extends React.Component { // eslint-disable-line react/pr
|
|||||||
|
|
||||||
isUrlProtected = (props) => !includes(props.location.pathname, '/plugins/users-permissions/auth');
|
isUrlProtected = (props) => !includes(props.location.pathname, '/plugins/users-permissions/auth');
|
||||||
|
|
||||||
showLeftMenu = () => !includes(this.props.location.pathname, '/plugins/users-permissions/auth') && !isUndefined(get(this.props.plugins.toJS(), 'users-permissions'));
|
showLeftMenu = () => !includes(this.props.location.pathname, '/plugins/users-permissions/auth');
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const leftMenu = this.showLeftMenu() ? <LeftMenu plugins={this.props.plugins} /> : '';
|
const leftMenu = this.showLeftMenu() ? <LeftMenu plugins={this.props.plugins} /> : '';
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user