fixed the bug
parent
5c67daed62
commit
7988638473
|
@ -237,8 +237,7 @@ const TicketAggent = ({ setRedirect, setRedirectUrl, t }) => {
|
||||||
ticketTypes.map(ticketType => {
|
ticketTypes.map(ticketType => {
|
||||||
if (ticketType.id == target.value) {
|
if (ticketType.id == target.value) {
|
||||||
setSelectedTicketTypeName(ticketType.name);
|
setSelectedTicketTypeName(ticketType.name);
|
||||||
console.log("onWorkflowTypeChange", ticketType.name, ticketType.id, target.value)
|
console.log('onWorkflowTypeChange', ticketType.name, ticketType.id, target.value);
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
|
@ -110,11 +110,13 @@ const TicketApplication = ({ setRedirect, setRedirectUrl, t }) => {
|
||||||
let isResponseOK = false;
|
let isResponseOK = false;
|
||||||
// Get Ticket List
|
// Get Ticket List
|
||||||
fetch(APIBaseURL + '/ticket/list', {
|
fetch(APIBaseURL + '/ticket/list', {
|
||||||
method: 'GET',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-type': 'application/json'
|
'Content-type': 'application/json'
|
||||||
},
|
},
|
||||||
body: null
|
body: JSON.stringify({
|
||||||
|
user_name: 'admin'
|
||||||
|
})
|
||||||
})
|
})
|
||||||
.then(response => {
|
.then(response => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
|
@ -275,7 +277,6 @@ const TicketApplication = ({ setRedirect, setRedirectUrl, t }) => {
|
||||||
setApplyModalIsShown(true);
|
setApplyModalIsShown(true);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
// Submit
|
// Submit
|
||||||
let submitApplication = target => {
|
let submitApplication = target => {
|
||||||
hiddenModal();
|
hiddenModal();
|
||||||
|
@ -314,7 +315,6 @@ const TicketApplication = ({ setRedirect, setRedirectUrl, t }) => {
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
let hiddenModal = () => {
|
let hiddenModal = () => {
|
||||||
setApplyModalIsShown(false);
|
setApplyModalIsShown(false);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue