Investors & landlords

i  need to know if I am required to allocate part ot the Capital Gain on the sale of a rental property  sold on Aug 08 2024.  The rental property is located in the State of MIssouri.   In 2024 I lived and worked in the state of Missouri until June 12 2024.  Do I need to allocate a portion of the capital gains on the sale of the rental property to MA since I technically relocated there on June 12, 2024.  Please inform.