documents fix
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import {
|
||||
API_SERVER
|
||||
} from '../../config';
|
||||
import { fromWiaasCustomerQuestionnaire } from '../../helpers/ProcessHelper';
|
||||
|
||||
|
||||
import {
|
||||
UPLOAD_CUSTOMER_QUESTIONNAIRE,
|
||||
@@ -41,7 +43,8 @@ export const fetchCustomerQuestionnaires = (idOrder) => {
|
||||
})
|
||||
.then(response => {
|
||||
if (typeof response.data !== 'undefined') {
|
||||
dispatch(receiveCustomerQuestionnaires(response.data));
|
||||
const questionnairesData = response.data.map(cData => fromWiaasCustomerQuestionnaire(cData));
|
||||
dispatch(receiveCustomerQuestionnaires(questionnairesData));
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
|
||||
Reference in New Issue
Block a user