pull/10616/head
Andrew Watkins 2017-09-21 15:01:13 -07:00
parent ba5f10a9fb
commit dc8dbeb944
1 changed files with 2 additions and 1 deletions

View File

@ -78,8 +78,9 @@ class KapacitorPage extends Component {
const {kapacitor} = this.state
const isNameTaken = kapacitors.some(k => k.name === kapacitor.name)
const isNew = !params.id
if (isNameTaken) {
if (isNew && isNameTaken) {
addFlashMessage({
type: 'error',
text: `There is already a Kapacitor configuration named "${kapacitor.name}"`,