storage to human bug fix

This commit is contained in:
2025-08-14 15:55:31 +05:30
parent ab3eb84277
commit 922085ec6c
2 changed files with 16 additions and 6 deletions

View File

@@ -23,6 +23,7 @@ export function useHumanEventManager() {
}, [isReset, isPlaying]);
const addHumanToMonitor = (humanId: string, callback: () => void, actionUuid: string) => {
console.log('humanId: ', humanId);
const human = getHumanById(humanId);
const action = getActionByUuid(selectedProduct.productUuid, actionUuid);
if (!human || !action || (action.actionType !== 'assembly' && action.actionType !== 'worker' && action.actionType !== 'operator') || !humanEventManagerRef.current) return;