@ -252,7 +252,7 @@ func (l *Loader) FindProject(ctx context.Context, id string) (*models.ProjectRes
TaskIDs: taskIDs,
})
for _, log := range logs {
if log.SecondaryItemID == nil {
if log.SecondaryItemID != nil {
itemIDs.Add(*log.SecondaryItemID)
}