Get the AmmoTracker's in-popover editing working using the foreign document updating

This commit is contained in:
Oliver-Akins 2025-04-09 22:13:52 -06:00
parent 053ab05dcb
commit 05a3db98c8
3 changed files with 23 additions and 9 deletions

View file

@ -37,7 +37,10 @@ export class AmmoTracker extends GenericPopoverMixin(HandlebarsApplicationMixin(
// #region Lifecycle
async _preparePartContext(partId, data) {
const ctx = { partId };
const ctx = {
meta: { idp: this.id },
partId,
};
let favouriteCount = 0;
ctx.ammos = data.ammos.map(ammo => {