I live in Virginia. Last year, I briefly worked remotely for a NYC company. Why is the NY state return taxing all of our income including VA? Should only tax NY portion?

I live in VA. Last year, I brielfy worked in a remote position for a NYC company. I paid NY state taxes (according to my W-2). Why when I'm filing the NY state return, even though I have said I am a nonresident, it is including all of our income? I shouldn't be paying NY state income tax on income that was earned in VA! Why is it doing this?