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) {
|
||||
const attrs = [];
|
||||
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({
|
||||
id,
|
||||
name: data.name,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue