[bug] Check for state_id when looking for a state

This commit is contained in:
NicolasCantu 2025-06-04 15:38:50 +02:00
parent df726d929a
commit 26ba3e6e93

View File

@ -1727,7 +1727,7 @@ export default class Services {
public getStateFromId(process: Process, stateId: string): ProcessState | null {
if (process.states.length === 0) return null;
const state = process.states.find(state => state.commited_in === stateId);
const state = process.states.find(state => state.state_id === stateId);
if (state) {
return state;
} else {