mirror of
https://github.com/koala73/worldmonitor.git
synced 2026-04-25 17:14:57 +02:00
fix(simulation): surface market_cascade path in UI — increase uiTheaters topPaths cap 2→3 (#2285)
The simulation produces 3 paths (escalation, containment, market_cascade) but writeSimulationOutcome was slicing to 2, silently dropping market_cascade before writing the Redis pointer. The UI and ForecastPanel never saw the economic cascade path.
This commit is contained in:
@@ -15704,7 +15704,7 @@ async function writeSimulationOutcome(pkg, outcome, { storageConfig } = {}) {
|
||||
theaterId: tr.theaterId,
|
||||
theaterLabel: tr.theaterLabel || tr.theaterId,
|
||||
stateKind: tr.stateKind || '',
|
||||
topPaths: (tr.topPaths || []).slice(0, 2).map((p) => ({
|
||||
topPaths: (tr.topPaths || []).slice(0, 3).map((p) => ({
|
||||
label: p.label,
|
||||
summary: p.summary,
|
||||
confidence: p.confidence,
|
||||
|
||||
Reference in New Issue
Block a user