Skip to content

Commit

Permalink
make editState change more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
KeyboardTsundoku committed Jan 6, 2017
1 parent 18d40b7 commit 1ddb062
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/internal-packages/validation/lib/stores/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,7 @@ const ValidationStore = Reflux.createStore({
if (!_.has(this.lastFetchedValidatorDoc, 'validationAction')
&& !_.has(this.lastFetchedValidatorDoc, 'validationLevel')
&& _.isEmpty(this.lastFetchedValidatorDoc.validator)) {
state.editState = _.isEqual(this.lastFetchedValidatorDoc.validator,
validatorDoc.validator) ? 'unmodified' : 'modified';
state.editState = _.isEmpty(validatorDoc.validator) ? 'unmodified' : 'modified';
} else {
state.editState = _.isEqual(this.lastFetchedValidatorDoc,
validatorDoc) ? 'unmodified' : 'modified';
Expand Down

0 comments on commit 1ddb062

Please sign in to comment.