From f237bce4d99f8f0762ec34e4e2ca406c440d9b24 Mon Sep 17 00:00:00 2001 From: Eldritch-Oliver Date: Sun, 12 Oct 2025 01:42:23 -0600 Subject: [PATCH] Update the GenericApp to be using _prepareContext instead of _preparePartContext --- module/Apps/mixins/GenericApp.mjs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/module/Apps/mixins/GenericApp.mjs b/module/Apps/mixins/GenericApp.mjs index b0c2553..ae2eb94 100644 --- a/module/Apps/mixins/GenericApp.mjs +++ b/module/Apps/mixins/GenericApp.mjs @@ -83,10 +83,8 @@ export function GenericAppMixin(HandlebarsApp) { }); }; - async _preparePartContext(partId, ctx, opts) { - ctx = await super._preparePartContext(partId, ctx, opts); - delete ctx.document; - delete ctx.fields; + async _prepareContext() { + const ctx = {}; ctx.meta ??= {}; ctx.meta.idp = this.document?.uuid ?? this.id; @@ -95,7 +93,6 @@ export function GenericAppMixin(HandlebarsApp) { ctx.meta.editable = this.isEditable || game.user.isGM; ctx.meta.embedded = this.document.isEmbedded; }; - delete ctx.editable; return ctx; };