Merge pull request #4910 from strapi/fix/#4908

Fixes #4908
This commit is contained in:
Alexandre BODIN 2020-01-06 19:53:31 +01:00 committed by GitHub
commit cf9ede7e04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,7 +11,7 @@ import { Button, PopUpWarning } from 'strapi-helper-plugin';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import Wrapper from './Wrapper';
const PLUGINS_WITH_CONFIG = ['content-manager', 'email', 'upload'];
const PLUGINS_WITH_CONFIG = ['email', 'upload'];
/* eslint-disable react/no-unused-state */
class PluginCard extends React.Component {
@ -57,10 +57,7 @@ class PluginCard extends React.Component {
};
handleClickSettings = e => {
const settingsPath =
this.props.plugin.id === 'content-manager'
? '/plugins/content-manager/ctm-configurations/models'
: `/plugins/${this.props.plugin.id}/configurations/${this.props.currentEnvironment}`;
const settingsPath = `/plugins/${this.props.plugin.id}/configurations/${this.props.currentEnvironment}`;
e.preventDefault();
e.stopPropagation();