From 0b89b0e54edbc810fc4ab0074c0ab80207ed7775 Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Sat, 31 May 2025 10:25:20 -0600 Subject: [PATCH] Ensure that the manager doesn't error while prepping string buckets without a pre-existing choices config (closes #26) --- module/Apps/TableManager.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/Apps/TableManager.mjs b/module/Apps/TableManager.mjs index 2bd2e82..1bb6726 100644 --- a/module/Apps/TableManager.mjs +++ b/module/Apps/TableManager.mjs @@ -210,7 +210,7 @@ export class TableManager extends HandlebarsApplicationMixin(ApplicationV2) { }; async _prepareStringContext(ctx, table) { - ctx.buckets.choices = [...table.buckets.choices]; + ctx.buckets.choices = [...(table.buckets.choices ?? [])]; }; // #endregion Data Prep