refactor(state): address HMR and defensive slicing recommendations for runtime

This commit is contained in:
ginnoir
2026-06-11 21:23:18 -05:00
parent b29b17c6cb
commit ed9607e9e8
2 changed files with 11 additions and 2 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ export function processStoryTriggers(
...logEntries.map((e) =>
e.choiceLabel
? `Story: ${e.choiceLabel}`
: `Story: ${content.storyNodesById[e.nodeId]?.prose.slice(0, 40)}`,
: `Story: ${(content.storyNodesById[e.nodeId]?.prose ?? '').slice(0, 40)}`,
),
];
return { enteredNodeIds, logEntries, shouldOpenPanel, eventLogLines };