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
commit 1604aad151
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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>
{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} />
)}