fix(standardization): apply safe sort padding across all remaining modules

- Hardened 'JournalEntry' and 'Sponsorship' object processors to handle null sort values.
- Disabled aggressive pre-loading of archive content in main archives list to improve performance.
This commit is contained in:
Scott Idem
2026-02-05 12:33:35 -05:00
parent 2306f2d0c4
commit 22e05ec095
3 changed files with 11 additions and 8 deletions

View File

@@ -44,11 +44,12 @@ export async function process_ae_obj__sponsorship_cfg_props({
log_lvl,
specific_processor: (obj) => {
// Sponsorship Cfg-specific computed sort fields
const sort_val = (obj.sort ?? 0).toString().padStart(3, '0');
obj.tmp_sort_1 = `${obj.group ?? ''}_${obj.priority ? '1' : '0'}_${
obj.sort?.toString().padStart(3, '0') ?? ''
sort_val
}_${obj.updated_on ?? obj.created_on}`;
obj.tmp_sort_2 = `${obj.group ?? ''}_${obj.priority ? '1' : '0'}_${
obj.sort?.toString().padStart(3, '0') ?? ''
sort_val
}_${obj.updated_on}_${obj.created_on}`;
return obj;
@@ -110,11 +111,12 @@ export async function process_ae_obj__sponsorship_props({
log_lvl,
specific_processor: (obj) => {
// Sponsorship-specific computed sort fields
const sort_val = (obj.sort ?? 0).toString().padStart(3, '0');
obj.tmp_sort_1 = `${obj.group ?? ''}_${obj.priority ? '1' : '0'}_${
obj.sort?.toString().padStart(3, '0') ?? ''
sort_val
}_${obj.updated_on ?? obj.created_on}`;
obj.tmp_sort_2 = `${obj.group ?? ''}_${obj.priority ? '1' : '0'}_${
obj.sort?.toString().padStart(3, '0') ?? ''
sort_val
}_${obj.updated_on}_${obj.created_on}`;
return obj;