From cc749ccd255fa7b68e5c2ba7a5c8fe802ab84d11 Mon Sep 17 00:00:00 2001 From: Demerson Carvalho Date: Tue, 10 Feb 2026 10:32:14 -0300 Subject: [PATCH] DECAF-26 - update model page directive --- src/lib/engine/NgxModelPageDirective.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/engine/NgxModelPageDirective.ts b/src/lib/engine/NgxModelPageDirective.ts index 9152c400..c77be740 100644 --- a/src/lib/engine/NgxModelPageDirective.ts +++ b/src/lib/engine/NgxModelPageDirective.ts @@ -320,8 +320,8 @@ export abstract class NgxModelPageDirective extends NgxPageDirective implements if (constructor) { const properties = this.getModelProperties(constructor); for (const prop of properties) { - const type = this.getModelPropertyType(constructor as Constructor, prop); - const context = getModelAndRepository(type as string); + const type = this.getModelPropertyType(constructor, prop); + const context = getModelAndRepository(type) || getModelAndRepository(prop); if (!context) { acc[prop] = {}; return getRepository(type, acc, prop);