diff --git a/src/containers/EditListingForm/EditListingForm.js b/src/containers/EditListingForm/EditListingForm.js index ea431edf..80047e43 100644 --- a/src/containers/EditListingForm/EditListingForm.js +++ b/src/containers/EditListingForm/EditListingForm.js @@ -1,6 +1,7 @@ import React, { Component, PropTypes } from 'react'; import { Field, reduxForm, propTypes as formPropTypes } from 'redux-form'; import { intlShape, injectIntl } from 'react-intl'; +import { isEqual } from 'lodash'; import { maxLength, required } from '../../util/validators'; import { Promised } from '../../components'; import css from './EditListingForm.css'; @@ -17,9 +18,9 @@ const readImage = file => new Promise((resolve, reject) => { reader.readAsDataURL(file); }); - // Custom inputs with validator messages -const RenderField = ({ input, label, type, meta: { touched, error } }) => { +const RenderField = ({ input, label, type, meta }) => { + const { touched, error } = meta; const component = type === 'textarea' ?