We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bd82f4 commit 2496efdCopy full SHA for 2496efd
1 file changed
pkg/repository/trigger.go
@@ -2447,14 +2447,17 @@ func (r *sharedRepository) NewTriggerTaskData(
2447
2448
if parentTask != nil {
2449
parentExternalId := parentTask.ExternalID
2450
- childIndex := int64(*req.ChildIndex)
2451
2452
t.ParentExternalId = &parentExternalId
2453
t.ParentTaskId = &parentTask.ID
2454
t.ParentTaskInsertedAt = &parentTask.InsertedAt.Time
2455
- t.ChildIndex = &childIndex
2456
t.ChildKey = req.ChildKey
2457
+ if req.ChildIndex != nil {
+ childIndex := int64(*req.ChildIndex)
2458
+ t.ChildIndex = &childIndex
2459
+ }
2460
+
2461
t.AdditionalMetadata = injectParentIDs(
2462
t.AdditionalMetadata,
2463
parentTask.WorkflowRunID,
0 commit comments