diff --git a/packages/unleash-frontend-next/src/component/feature/selected-strategies.jsx b/packages/unleash-frontend-next/src/component/feature/selected-strategies.jsx index 18fef25a59..a4f23e8af9 100644 --- a/packages/unleash-frontend-next/src/component/feature/selected-strategies.jsx +++ b/packages/unleash-frontend-next/src/component/feature/selected-strategies.jsx @@ -11,7 +11,12 @@ class SelectedStrategies extends React.Component { renderName (strategy) { const parameters = strategy.parameters || {}; - const params = Object.keys(parameters) + const keys = Object.keys(parameters); + if (keys.length === 0) { + return {strategy.name}; + } + + const params = keys .map(param => `${param}="${strategy.parameters[param]}"`) .join('; '); return {strategy.name} ({params}); @@ -21,7 +26,7 @@ class SelectedStrategies extends React.Component { const removeStrategy = this.props.removeStrategy; const configuredStrategies = this.props.configuredStrategies.map((s, index) => ( removeStrategy(s)}