diff --git a/compose/service/record.go b/compose/service/record.go index 1ef7f8ff1..44a6f69d5 100644 --- a/compose/service/record.go +++ b/compose/service/record.go @@ -460,6 +460,10 @@ func (svc record) searchSensitive(ctx context.Context, userID uint64, namespace }) } + if len(vv) == 0 { + continue + } + out.Records = append(out.Records, types.SensitiveRecord{ RecordID: r.ID, Values: vv,