Do i file a state return in Missouri if its not my home of records while I am active duty military but I sold a house in that state I made way under the 250,000 mark

it was closer to 50 thousand. Montana is my home of records not Missouri, I was just there for my military service