fix(ui) - listing visibility negative values
This commit is contained in:
parent
d15961ace8
commit
f08ee75fa7
1 changed files with 3 additions and 1 deletions
|
|
@ -49,9 +49,11 @@ function ListingVisibility() {
|
|||
value={durationSettings.count}
|
||||
type="number"
|
||||
name="count"
|
||||
min={0}
|
||||
placeholder="E.g 10"
|
||||
onChange={({ target: { value } }: any) => {
|
||||
changeSettings({ count: value })
|
||||
console.log('value', value)
|
||||
changeSettings({ count: value > 0 ? value : '' })
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue