added multiple actions for storage unit , and simulation bug fix
This commit is contained in:
@@ -21,12 +21,13 @@ function Simulator() {
|
||||
if (!product) return;
|
||||
|
||||
const executionOrder = determineExecutionOrder([product]);
|
||||
executionOrder.forEach(point => {
|
||||
const action = 'actions' in point ? point.actions[0] : point.action;
|
||||
|
||||
executionOrder.forEach(action => {
|
||||
handleAction(action);
|
||||
});
|
||||
}, [products, isPlaying, isReset, selectedProduct]);
|
||||
|
||||
|
||||
return (
|
||||
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user