[bug] Check for state_id when looking for a state
This commit is contained in:
parent
df726d929a
commit
26ba3e6e93
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user