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