Merge pull request #1416 from danielyxie/dev

fix corp ui text fields now clearing on city change
This commit is contained in:
hydroflame
2021-10-04 13:49:53 -04:00
committed by GitHub
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

View File

@ -38,7 +38,13 @@ export function CityTabs(props: IProps): React.ReactElement {
</Tabs>
{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} />
)}