Commit fe98fc426cd76c2f9435cf419eca91b86baa3e43
1 parent
d8241cee
bugfix
Showing
1 changed file
with
1 additions
and
1 deletions
src/pages/finance/TradeCompany/components/CreateModal.tsx
... | ... | @@ -67,7 +67,7 @@ export default function CreateModal() { |
67 | 67 | ...item, |
68 | 68 | longitude: Number(item.longitude), |
69 | 69 | latitude: Number(item.latitude), |
70 | - lonLatAddress: item.location.address, | |
70 | + lonLatAddress: item.location? item.location.address : "", | |
71 | 71 | }; |
72 | 72 | setSavelLoading(true); |
73 | 73 | const saveApi = current.id ? updateCompanyApi : createCompanyApi; | ... | ... |