From 196da71c1d37934e9dc3f2ff1e6d48eec75fef8f Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Fri, 25 Jul 2025 22:14:31 -0600 Subject: [PATCH] Ensure newly created attributes save properly without needing to reorder them first --- module/apps/AttributeManager.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/apps/AttributeManager.mjs b/module/apps/AttributeManager.mjs index 2029e0d..c0f4834 100644 --- a/module/apps/AttributeManager.mjs +++ b/module/apps/AttributeManager.mjs @@ -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, };