|
|
@@ -17,7 +17,7 @@ const AddCompanyModal = ({ dataId, dataType, onConfirm, dispatch, natures }) =>
|
|
|
useEffect(() => {
|
|
|
const getNatures = () => {
|
|
|
dispatch({
|
|
|
- type: 'customer/fetch'
|
|
|
+ type: 'company/fetchNatures'
|
|
|
})
|
|
|
}
|
|
|
!natures.length && getNatures()
|
|
|
@@ -95,6 +95,6 @@ const AddCompanyModal = ({ dataId, dataType, onConfirm, dispatch, natures }) =>
|
|
|
)
|
|
|
}
|
|
|
|
|
|
-export default connect(({ customer }) => ({
|
|
|
- natures: customer.natures
|
|
|
+export default connect(({ company }) => ({
|
|
|
+ natures: company.natures
|
|
|
}))(AddCompanyModal)
|