Make rp not able to be empty
parent
aa33b622a5
commit
b33aa32feb
|
@ -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)}
|
||||||
|
|
Loading…
Reference in New Issue