Fixes redirection when creating a ticket without user system enabled
This commit is contained in:
parent
bc38411275
commit
8ea9c6ee9b
|
@ -146,7 +146,7 @@ class CreateTicketForm extends React.Component {
|
|||
message: 'success'
|
||||
}, () => {
|
||||
if(this.props.onSuccess) {
|
||||
this.props.onSuccess();
|
||||
this.props.onSuccess(result, email);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
@ -32,7 +32,7 @@ class DashboardCreateTicketPage extends React.Component {
|
|||
);
|
||||
}
|
||||
|
||||
onCreateTicketSuccess() {
|
||||
onCreateTicketSuccess(result, email) {
|
||||
if((this.props.location.pathname !== '/create-ticket')) {
|
||||
setTimeout(() => {history.push('/dashboard')}, 2000);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue