From d5da853db1b21f8b5780a25de8f990305edbb9ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A1ssio=20Zen?= Date: Tue, 7 Jun 2016 21:04:40 -0300 Subject: [PATCH] Only create ImageProxy if there's a value prop --- src/components/Widgets/ImageControl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Widgets/ImageControl.js b/src/components/Widgets/ImageControl.js index 4cfc9027..f6322fd0 100644 --- a/src/components/Widgets/ImageControl.js +++ b/src/components/Widgets/ImageControl.js @@ -8,7 +8,7 @@ export default class ImageControl extends React.Component { super(props); this.state = { - currentImage: new ImageProxy(props.value, null, true) + currentImage: props.value ? new ImageProxy(props.value, null, true) : null }; this.revokeCurrentImage = this.revokeCurrentImage.bind(this);