mirror of
https://github.com/maputnik/editor.git
synced 2026-11-28 04:44:20 +00:00
Fixed field spec for image/video.
This commit is contained in:
1 parent
8e6c54564b
commit
0a8d0974ca
1 file changed
+2
-2
@@ -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}
|
||||
|
||||
Reference in new issue
Block a user