Ensure that the manager doesn't error while prepping string buckets without a pre-existing choices config (closes #26)

This commit is contained in:
Oliver-Akins 2025-05-31 10:25:20 -06:00
parent 2c733385ef
commit 0b89b0e54e

View file

@ -210,7 +210,7 @@ export class TableManager extends HandlebarsApplicationMixin(ApplicationV2) {
}; };
async _prepareStringContext(ctx, table) { async _prepareStringContext(ctx, table) {
ctx.buckets.choices = [...table.buckets.choices]; ctx.buckets.choices = [...(table.buckets.choices ?? [])];
}; };
// #endregion Data Prep // #endregion Data Prep