Make rp not able to be empty

pull/10616/head
Andrew Watkins 2017-03-20 14:53:49 -07:00
parent aa33b622a5
commit b33aa32feb
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ const DatabaseRow = ({
name="name" name="name"
type="number" type="number"
min="1" min="1"
value={replication || ''} value={replication || 1}
placeholder="how many nodes do you have" placeholder="how many nodes do you have"
onChange={(e) => onEdit(database, {...retentionPolicy, replication: +e.target.value})} onChange={(e) => onEdit(database, {...retentionPolicy, replication: +e.target.value})}
onKeyDown={(e) => onKeyDown(e, database, retentionPolicy)} onKeyDown={(e) => onKeyDown(e, database, retentionPolicy)}