feat: Refactor swap handling and enhance delay management in conveyor actions

This commit is contained in:
2025-05-06 12:35:51 +05:30
parent bdba6447f3
commit 815a9a94ca
9 changed files with 138 additions and 48 deletions

View File

@@ -103,7 +103,7 @@ function MaterialInstance({ material }: { material: MaterialSchema }) {
if (toModel.type === 'transfer') {
const action = getActionByPointUuid(selectedProduct.productId, material.next.pointUuid);
if (action) {
triggerPointActions(action);
triggerPointActions(action, material.materialId);
}
} else if (toModel?.type === 'vehicle') {
// Transfer to Vehicle