mirror of
https://github.com/franjsco/tick3t
synced 2025-06-05 22:19:18 +02:00
fix: error
This commit is contained in:
@@ -42,7 +42,7 @@ class CreateTicket extends Component {
|
||||
componentDidMount() {
|
||||
getAllTicketType()
|
||||
.then(json => this.setState({ categories: json.data }))
|
||||
.catch(error => this.setState({ error }));
|
||||
.catch(error => this.setState({ error: error.message }));
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user