1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-06-17 01:43:23 +02: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:
Bogdan Fazakas 2022-03-31 14:09:05 +03:00 committed by GitHub
commit 8c0f22fc35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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