diff --git a/internal/graph/schema.resolvers.go b/internal/graph/schema.resolvers.go index 756ed49..93a61e4 100644 --- a/internal/graph/schema.resolvers.go +++ b/internal/graph/schema.resolvers.go @@ -1103,6 +1103,9 @@ func (r *taskResolver) Badges(ctx context.Context, obj *db.Task) (*TaskBadges, e } } } + if complete == 0 && total == 0 { + return &TaskBadges{Checklist: nil}, nil + } return &TaskBadges{Checklist: &ChecklistBadge{Total: total, Complete: complete}}, nil }