Don't try to use an undefined transition list
continuous-integration/drone/push Build is passing Details

main
Clément FRÉVILLE 3 months ago
parent b4e06d05c5
commit fc555efbc0

@ -95,7 +95,9 @@ export function openAutomaton(name, states, editable = false) {
for (const s of state) {
if (s in states) {
const transitions = states[s].transitions[letter];
newStates.push(...transitions);
if (transitions) {
newStates.push(...transitions);
}
}
}
state = newStates;

Loading…
Cancel
Save