Moved methods into TypedModelData

This commit is contained in:
WBHarry 2025-06-07 17:52:51 +02:00
parent a5aa2e914d
commit d4754e511f
7 changed files with 83 additions and 91 deletions

View file

@ -27,7 +27,7 @@ export default function DhpApplicationMixin(Base) {
async _prepareContext(_options, objectPath = 'document') {
const context = await super._prepareContext(_options);
context.source = this[objectPath].toObject();
context.source = this[objectPath];
context.fields = this[objectPath].schema.fields;
context.systemFields = this[objectPath].system ? this[objectPath].system.schema.fields : {};