fix corp ui text fields now clearing on city change

This commit is contained in:
Olivier Gagnon 2021-10-04 13:49:27 -04:00
parent d58e2df9c7
commit 27fc90c87a
3 changed files with 9 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -38,7 +38,13 @@ export function CityTabs(props: IProps): React.ReactElement {
</Tabs> </Tabs>
{city !== "Expand" ? ( {city !== "Expand" ? (
<Industry rerender={props.rerender} city={city} warehouse={division.warehouses[city]} office={office} /> <Industry
key={city}
rerender={props.rerender}
city={city}
warehouse={division.warehouses[city]}
office={office}
/>
) : ( ) : (
<ExpandNewCity cityStateSetter={setCity} /> <ExpandNewCity cityStateSetter={setCity} />
)} )}