From 139b86c26810ac84d0c5831b9560f1f49514557b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A1ssio=20Zen?= Date: Mon, 6 Jun 2016 10:41:55 -0300 Subject: [PATCH] render props.value straight --- src/components/Widgets/ImagePreview.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/components/Widgets/ImagePreview.js b/src/components/Widgets/ImagePreview.js index 90b2da19..7445a405 100644 --- a/src/components/Widgets/ImagePreview.js +++ b/src/components/Widgets/ImagePreview.js @@ -3,16 +3,10 @@ import React from 'react'; export default class ImagePreview extends React.Component { constructor(props) { super(props); - this.handleImageLoaded = this.handleImageLoaded.bind(this); - } - - handleImageLoaded() { - window.URL.revokeObjectURL(this.props.value); } render() { - console.log(this.props) const { value } = this.props; - return value ? : null; + return value ? : null; } }