Skip to content

Commit

Permalink
🐛 Resolve promise before exit (#101)
Browse files Browse the repository at this point in the history
Referred (Backport) to 9db1e2c
  • Loading branch information
volterra79 authored Feb 22, 2024
1 parent 1f0e808 commit a79230b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions workflows/steps/tasks/editingtask.js
Original file line number Diff line number Diff line change
Expand Up @@ -655,13 +655,15 @@ proto.handleRelation1_1LayerFields = async function({
return new Promise(async (resolve) => {
// skip when layer is not a father layer (1:1 relation)
if (layerId !== relation.getFather()) {
resolve();
return;
}
const fatherField = relation.getFatherField()[0];
const value = features[0].get(fatherField);

//no set father field value. No set
if (null === value) {
resolve();
return
}

Expand Down

0 comments on commit a79230b

Please sign in to comment.