Commit fe98fc426cd76c2f9435cf419eca91b86baa3e43

Authored by zhaofeng
1 parent d8241cee

bugfix

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;
... ...