capital gains on a farm sale in Indiana

I reside in Virginia but sold an inherited property in in Indiana during 2023. I put it in turbo tax as a capital gain and it was reduced by some carryover losses from previous years. This amount was added to my adjusted gross income for 2023.  This carry over loss was not from Indiana income but Turbo Tax is using the reduced income  for the Indiana taxes. is that correct for Indiana?  turbo tax has not reduced the capital gains in VA for the sale in Indiana.  do i need to manually input the reduction?

 

i did state the sale was in Indiana in the capital gains section.

 

Thanks!