Both are correct. The "to" is optional. org/wiki/Appendix:English_catenative_verbs These are verbs which can be followed directly by another verb, in either the to infinitive or present participle / gerund forms.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.