From 42c8d2ecd88eb97bd52ade9362ea80f6c31374ef Mon Sep 17 00:00:00 2001 From: ivaosthu Date: Tue, 25 Oct 2016 22:33:23 +0200 Subject: [PATCH] minor fix --- .../src/component/feature/add-container.jsx | 4 ++-- .../src/component/feature/configure-strategy.jsx | 12 ++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/packages/unleash-frontend-next/src/component/feature/add-container.jsx b/packages/unleash-frontend-next/src/component/feature/add-container.jsx index 3ece661dcd..18bcc9e93d 100644 --- a/packages/unleash-frontend-next/src/component/feature/add-container.jsx +++ b/packages/unleash-frontend-next/src/component/feature/add-container.jsx @@ -1,5 +1,5 @@ import { connect } from 'react-redux'; -import { hashHistory } from 'react-router'; +import { browserHistory } from 'react-router'; import { createFeatureToggles } from '../../store/feature-actions'; @@ -21,7 +21,7 @@ const prepare = (methods, dispatch) => { methods.onCancel = (evt) => { evt.preventDefault(); - hashHistory.push('/features'); + browserHistory.push('/features'); }; methods.addStrategy = (v) => { diff --git a/packages/unleash-frontend-next/src/component/feature/configure-strategy.jsx b/packages/unleash-frontend-next/src/component/feature/configure-strategy.jsx index db70d89850..b74bcc168b 100644 --- a/packages/unleash-frontend-next/src/component/feature/configure-strategy.jsx +++ b/packages/unleash-frontend-next/src/component/feature/configure-strategy.jsx @@ -35,6 +35,8 @@ class ConfigureStrategies extends React.Component { } renderInputFields (strategyDefinition) { + + if (strategyDefinition.parametersTemplate) { return Object.keys(strategyDefinition.parametersTemplate).map(field => ( + Strategy "{this.props.strategy.name}" deleted +