[bug] better check in getChildrenOfProcess
This commit is contained in:
parent
11699246eb
commit
511ea710fa
@ -848,7 +848,7 @@ export default class Services {
|
|||||||
try {
|
try {
|
||||||
const parentIdHash = pcdCommitment['parent_id'];
|
const parentIdHash = pcdCommitment['parent_id'];
|
||||||
const diff = await this.getDiffByValue(parentIdHash);
|
const diff = await this.getDiffByValue(parentIdHash);
|
||||||
if (diff['new_value'] === processId) {
|
if (diff && diff['new_value'] === processId) {
|
||||||
res.push(process);
|
res.push(process);
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user