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