Ensure that the AttributeManager can still render in v13 due to the _del reference
This commit is contained in:
parent
871493bacf
commit
ec5f2feb7e
1 changed files with 3 additions and 2 deletions
|
|
@ -136,7 +136,8 @@ export class AttributeManager extends HandlebarsApplicationMixin(ApplicationV2)
|
||||||
async _prepareAttributeContext(ctx) {
|
async _prepareAttributeContext(ctx) {
|
||||||
const attrs = [];
|
const attrs = [];
|
||||||
for (const [id, data] of Object.entries(this.#attributes)) {
|
for (const [id, data] of Object.entries(this.#attributes)) {
|
||||||
if (data == null || data == _del) { continue };
|
if (data == null) { continue };
|
||||||
|
if (game.release.generation >= 14 && data == _del) continue;
|
||||||
attrs.push({
|
attrs.push({
|
||||||
id,
|
id,
|
||||||
name: data.name,
|
name: data.name,
|
||||||
|
|
@ -149,7 +150,7 @@ export class AttributeManager extends HandlebarsApplicationMixin(ApplicationV2)
|
||||||
};
|
};
|
||||||
// #endregion Data Prep
|
// #endregion Data Prep
|
||||||
|
|
||||||
// #region Actions
|
// #region Actions
|
||||||
/**
|
/**
|
||||||
* @param {Event} event
|
* @param {Event} event
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue