diff --git a/x-pack/plugins/canvas/canvas_plugin_src/uis/arguments/image_upload/index.js b/x-pack/plugins/canvas/canvas_plugin_src/uis/arguments/image_upload/index.js index 2caf41f0777e1..b9084241d8ded 100644 --- a/x-pack/plugins/canvas/canvas_plugin_src/uis/arguments/image_upload/index.js +++ b/x-pack/plugins/canvas/canvas_plugin_src/uis/arguments/image_upload/index.js @@ -27,13 +27,13 @@ class ImageUpload extends React.Component { onValueChange: PropTypes.func.isRequired, typeInstance: PropTypes.object.isRequired, resolvedArgValue: PropTypes.string, + argValue: PropTypes.string, assets: PropTypes.object.isRequired, }; constructor(props) { super(props); - - const url = props.resolvedArgValue || null; + const url = props.resolvedArgValue || props.argValue || null; let urlType = Object.keys(props.assets).length ? 'asset' : 'file'; // if not a valid base64 string, will show as missing asset icon @@ -141,7 +141,7 @@ class ImageUpload extends React.Component { file: , link: ( (this.inputRefs.srcUrlText = ref)} onSubmit={this.setSrcUrl} />