summaryrefslogtreecommitdiffstats
path: root/web/react/components/setting_picture.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'web/react/components/setting_picture.jsx')
-rw-r--r--web/react/components/setting_picture.jsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/react/components/setting_picture.jsx b/web/react/components/setting_picture.jsx
index eaa839733..33c3b650a 100644
--- a/web/react/components/setting_picture.jsx
+++ b/web/react/components/setting_picture.jsx
@@ -12,7 +12,7 @@ export default class SettingPicture extends React.Component {
if (file) {
var reader = new FileReader();
- var img = this.refs.image.getDOMNode();
+ var img = React.findDOMNode(this.refs.image);
reader.onload = function load(e) {
$(img).attr('src', e.target.result);
};
@@ -128,4 +128,4 @@ SettingPicture.propTypes = {
submit: React.PropTypes.func,
title: React.PropTypes.string,
pictureChange: React.PropTypes.func
-}; \ No newline at end of file
+};