Fixes #20: After change errors (JSON parse + equipment tab) #21
@@ -349,7 +349,8 @@ jQuery(async () => {
|
|||||||
initThoughtBasedExpressions();
|
initThoughtBasedExpressions();
|
||||||
updateFabWidgets();
|
updateFabWidgets();
|
||||||
updateStripWidgets();
|
updateStripWidgets();
|
||||||
// Explicit initial render of equipment to ensure it's visible
|
// Ensure section visibility matches settings (equipment is hidden by CSS, needs explicit .show())
|
||||||
|
updateSectionVisibility();
|
||||||
renderEquipment();
|
renderEquipment();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('[RPG Companion] Chat data load failed, using defaults:', error);
|
console.error('[RPG Companion] Chat data load failed, using defaults:', error);
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import { i18n } from '../../core/i18n.js';
|
|||||||
import { extensionSettings, lastGeneratedData, committedTrackerData } from '../../core/state.js';
|
import { extensionSettings, lastGeneratedData, committedTrackerData } from '../../core/state.js';
|
||||||
import { hexToRgba } from './theme.js';
|
import { hexToRgba } from './theme.js';
|
||||||
import { repairJSON } from '../../utils/jsonRepair.js';
|
import { repairJSON } from '../../utils/jsonRepair.js';
|
||||||
|
import { invalidateCache } from './renderUtils.js';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Helper to parse time string and calculate clock hand angles
|
* Helper to parse time string and calculate clock hand angles
|
||||||
|
|||||||
Reference in New Issue
Block a user