Prevent the ghosts of attributes from lingering when deleted (closes #37)

This commit is contained in:
Oliver 2026-03-07 14:47:21 -07:00
parent 97760bc424
commit 871493bacf

View file

@ -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,