Skip to content

Commit

Permalink
Update model-validator.js
Browse files Browse the repository at this point in the history
  • Loading branch information
esbanarango committed Jan 6, 2022
1 parent ae685f0 commit 79cf2a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/decorators/model-validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function modelValidator(Class) {
let stateToTransition = this.isNew ? 'created.uncommitted' : 'updated.uncommitted';
this.transitionTo(stateToTransition);
let recordModel = this.adapterDidInvalidate ? this : this._internalModel;
store.recordWasInvalid(recordModel, errors);
store.recordWasInvalid(recordModel, errors, 'error');
}
}
return ModelValidator;
Expand Down

0 comments on commit 79cf2a4

Please sign in to comment.