1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

yet another build fix

This commit is contained in:
Matthias Kretschmann 2020-07-13 14:24:41 +02:00
parent 7feb34cc66
commit 121d4fe889
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 6 additions and 4 deletions

View File

@ -46,9 +46,11 @@ export default function Input(props: Partial<InputProps>): ReactElement {
</Label>
<InputElement {...field} {...props} />
<div className={styles.error}>
<ErrorMessage name={field.name} />
</div>
{field && (
<div className={styles.error}>
<ErrorMessage name={field.name} />
</div>
)}
{help && <Help>{help}</Help>}
{additionalComponent && additionalComponent}

View File

@ -13,7 +13,7 @@ import Input from '../../atoms/Input'
import Button from '../../atoms/Button'
import { transformPublishFormToMetadata } from './utils'
import { FormContent, FormFieldProps } from '../../../@types/Form'
import { MetaDataPublishForm, AccessType } from '../../../@types/MetaData'
import { MetaDataPublishForm } from '../../../@types/MetaData'
import AssetModel from '../../../models/Asset'
import { File } from '@oceanprotocol/squid'