summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--web/react/components/view_image.jsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/react/components/view_image.jsx b/web/react/components/view_image.jsx
index 1ac6a3b5b..6077c4ebc 100644
--- a/web/react/components/view_image.jsx
+++ b/web/react/components/view_image.jsx
@@ -109,7 +109,7 @@ module.exports = React.createClass({
}
);
- if (this.refs.previewArrowLeft.getDOMNode) {
+ if (this.refs.previewArrowLeft) {
$(this.refs.previewArrowLeft.getDOMNode()).hover(
function onModalHover() {
$(self.refs.imageFooter.getDOMNode()).addClass('footer--show');
@@ -119,7 +119,7 @@ module.exports = React.createClass({
);
}
- if (this.refs.previewArrowRight.getDOMNode) {
+ if (this.refs.previewArrowRight) {
$(this.refs.previewArrowRight.getDOMNode()).hover(
function onModalHover() {
$(self.refs.imageFooter.getDOMNode()).addClass('footer--show');