From 79cf2a47cb5001b6471c53451256b68c787d1922 Mon Sep 17 00:00:00 2001 From: Esteban Arango Medina Date: Thu, 6 Jan 2022 15:17:26 -0500 Subject: [PATCH] Update model-validator.js --- addon/decorators/model-validator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addon/decorators/model-validator.js b/addon/decorators/model-validator.js index 729c50b9..4f01d7e5 100644 --- a/addon/decorators/model-validator.js +++ b/addon/decorators/model-validator.js @@ -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;