CreateImageWizard/FileSystem: Default to 0 if size input is NaN
This gets rid of prop warnings during tests.
This commit is contained in:
parent
f9d003995d
commit
bbd3623414
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ const SizeUnit = ({ ...props }) => {
|
|||
type="text"
|
||||
value={ size }
|
||||
aria-label="Size text input"
|
||||
onChange={ v => setSize(isNaN(parseInt(v)) ? '' : parseInt(v)) } />
|
||||
onChange={ v => setSize(isNaN(parseInt(v)) ? 0 : parseInt(v)) } />
|
||||
<Select
|
||||
className="pf-u-w-50"
|
||||
isOpen={ isOpen }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue