Compute ProductInitialState Value by Innerstate Initial Status
All checks were successful
E2E Testing / test (push) Successful in 1m28s
All checks were successful
E2E Testing / test (push) Successful in 1m28s
This commit is contained in:
parent
fa7a59ffc4
commit
78c992564e
@ -125,12 +125,14 @@ export class ProductGamesystem extends Gamesystem<ProductState, ProductTransitio
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const binary_productState = this.findProductStateByInnerStates(innerStates);
|
let binary_productState = this.findProductStateByInnerStates(innerStates);
|
||||||
if(binary_productState == undefined) {
|
if(binary_productState == undefined) {
|
||||||
return this.createState(innerStates)!;
|
binary_productState = this.createState(innerStates)!;
|
||||||
} else {
|
|
||||||
return binary_productState!;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let productInitial = true;
|
||||||
|
binary_productState.innerStates.forEach(innerState => productInitial = productInitial && innerState.initial)
|
||||||
|
return binary_productState!;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user