1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

fix: missing strategy makes the toggle-configure crash

This commit is contained in:
ivaosthu 2019-12-16 21:44:27 +01:00
parent ecc95f55b5
commit 9c97d8c313

View File

@ -215,10 +215,10 @@ class StrategyConfigure extends React.Component {
render() {
const { isDragging, connectDragPreview, connectDragSource, connectDropTarget } = this.props;
const description = this.props.strategyDefinition.description;
let item;
if (this.props.strategyDefinition) {
const description = this.props.strategyDefinition.description;
const strategyContent = this.renderStrategContent(this.props.strategyDefinition);
const { name } = this.props.strategy;
item = (