NYS TR

I earned one paycheck in NYS last year before moving to NJ, working for the same company.  When I file my NYS tax return they're saying I owe because they're using my federal AGI.  How can they use that figure when I didn't earn all that in NY?  Can I change it? I entered how much I earned in NYS for 2022 but they're still using my entire AGI when 90% of that was earned in NJ.