Skip to content

Commit

Permalink
feat(@tinacms/fields): ImageUpload parse returns the whole media object
Browse files Browse the repository at this point in the history
closes #1453
  • Loading branch information
ncphillips committed Sep 11, 2020
1 parent c0da98c commit 94ee917
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@tinacms/fields/src/plugins/ImageFieldPlugin.tsx
Expand Up @@ -88,7 +88,7 @@ export const ImageField = wrapFieldsWithMeta<InputProps, ImageProps>(props => {
if (media.filename == props.input.value) {
props.input.onChange('') // trigger rerender
}
props.input.onChange(media.filename)
props.input.onChange(media)
} else {
// TODO Handle failure
}
Expand Down

0 comments on commit 94ee917

Please sign in to comment.