documents fix
This commit is contained in:
@@ -12,6 +12,7 @@ import {
|
||||
updateMessages
|
||||
} from '../notification/notificationActions';
|
||||
import HtmlClient from '../../helpers/HtmlClient';
|
||||
import { fromWiaasCustomerAcceptance } from '../../helpers/ProcessHelper';
|
||||
|
||||
const htmlClient = new HtmlClient();
|
||||
|
||||
@@ -32,7 +33,11 @@ export const fetchCustomerAcceptance = (idOrder) => {
|
||||
})
|
||||
.then(response => {
|
||||
if (response.data) {
|
||||
dispatch(recieveCustomerAcceptance(response.data));
|
||||
dispatch(
|
||||
recieveCustomerAcceptance(
|
||||
fromWiaasCustomerAcceptance(response.data)
|
||||
)
|
||||
);
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
|
||||
@@ -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