1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-06-26 11:16:51 +02:00

fix error when sample on edit is empty

This commit is contained in:
Bogdan Fazakas 2022-03-31 11:51:21 +03:00
parent 8f93d9bc2f
commit cd2565d5e7

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