|
@@ -25,7 +25,7 @@ export default function useOptions(type) {
|
|
|
if (type === typeEnum.NATUREIDS) {
|
|
if (type === typeEnum.NATUREIDS) {
|
|
|
if (!store.getState().company.natures.length) {
|
|
if (!store.getState().company.natures.length) {
|
|
|
dispatch({
|
|
dispatch({
|
|
|
- type: 'company/fetch'
|
|
|
|
|
|
|
+ type: 'company/fetchNatures'
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|