From cecf28502e538077d66ffad8f272a9d345fc83b0 Mon Sep 17 00:00:00 2001 From: Alice Gaudon Date: Sun, 15 Nov 2020 14:13:35 +0100 Subject: [PATCH] ModelComponent: fix validators not transferred to attached model --- src/db/ModelComponent.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/db/ModelComponent.ts b/src/db/ModelComponent.ts index 1784136..7983749 100644 --- a/src/db/ModelComponent.ts +++ b/src/db/ModelComponent.ts @@ -21,6 +21,7 @@ export default abstract class ModelComponent { for (const property of this._properties) { if (!property.startsWith('_')) { model[property] = this[property]; + model['_validators'][property] = this._validators[property] as Validator | undefined; } }