Merge pull request #25 from Oliver-Akins/fix/#22

Ensure newly created attributes save properly without needing to reorder them first
This commit is contained in:
Oliver 2025-07-25 22:17:11 -06:00 committed by GitHub
commit 312202191d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -141,7 +141,7 @@ export class AttributeManager extends HandlebarsApplicationMixin(ApplicationV2)
const id = randomID();
this.#attributes[id] = {
name: ``,
sort: Number.POSITIVE_INFINITY,
sort: Number.MAX_SAFE_INTEGER,
isRange: false,
isNew: true,
};