Prevent the ghosts of attributes from lingering when deleted (closes #37)
This commit is contained in:
parent
97760bc424
commit
871493bacf
1 changed files with 1 additions and 1 deletions
|
|
@ -136,7 +136,7 @@ export class AttributeManager extends HandlebarsApplicationMixin(ApplicationV2)
|
|||
async _prepareAttributeContext(ctx) {
|
||||
const attrs = [];
|
||||
for (const [id, data] of Object.entries(this.#attributes)) {
|
||||
if (data == null) { continue };
|
||||
if (data == null || data == _del) { continue };
|
||||
attrs.push({
|
||||
id,
|
||||
name: data.name,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue