mirror of
https://github.com/oceanprotocol/market.git
synced 2024-06-29 00:57:50 +02:00
fix error when sample on edit is empty
This commit is contained in:
parent
8f93d9bc2f
commit
cd2565d5e7
|
@ -65,7 +65,7 @@ export default function FilesInput(props: InputProps): ReactElement {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{field.value[0].valid !== undefined ? (
|
{field?.value && field?.value[0]?.valid !== undefined ? (
|
||||||
<FileInfo file={field.value[0]} handleClose={handleClose} />
|
<FileInfo file={field.value[0]} handleClose={handleClose} />
|
||||||
) : (
|
) : (
|
||||||
<UrlInput
|
<UrlInput
|
||||||
|
|
Loading…
Reference in New Issue
Block a user