We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7aa255a commit daccdc5Copy full SHA for daccdc5
nflow-explorer/src/component/StateGraph.jsx
@@ -44,6 +44,10 @@ function createGraph(props) {
44
//when we have two actions in sequence that match the from state and the to state we return true
45
const actions = instance.actions;
46
47
+ if (actions.length === 0) {
48
+ return false;
49
+ }
50
+
51
for (let i = 0; i < actions.length - 1; i++) {
52
// Check if the current action state matches the toState (since it's reversed)
53
if (actions[i].state === toState && actions[i + 1].state === fromState) {
0 commit comments