Fixed field spec for image/video.

This commit is contained in:
orangemug 2020-04-25 13:31:15 +01:00
parent 8e6c54564b
commit 0a8d0974ca

View file

@ -104,7 +104,7 @@ class ImageSourceEditor extends React.Component {
}
return <div>
<InputBlock label={"Image URL"} doc={latest.source_image.url.doc}>
<InputBlock label={"Image URL"} fieldSpec={latest.source_image.url}>
<UrlInput
value={this.props.source.url}
onChange={url => this.props.onChange({
@ -155,7 +155,7 @@ class VideoSourceEditor extends React.Component {
}
return <div>
<InputBlock label={"Video URL"} doc={latest.source_video.urls.doc}>
<InputBlock label={"Video URL"} fieldSpec={latest.source_video.urls}>
<DynamicArrayInput
type="string"
value={this.props.source.urls}