mirror of
https://github.com/opensupports/opensupports.git
synced 2025-07-31 01:35:15 +02:00
add frontend error
This commit is contained in:
parent
c0712eef5d
commit
fbe7ec4bf1
@ -285,9 +285,9 @@ class AdminPanelDepartments extends React.Component {
|
||||
this.setState({formLoading: false,errorMessage: false, defaultDepartmentError: null});
|
||||
this.retrieveDepartments();
|
||||
this.onItemChange(-1);
|
||||
}).catch(() => {
|
||||
}).catch(result => {
|
||||
this.onItemChange.bind(this, -1);
|
||||
this.setState({formLoading: false, defaultDepartmentError: null});
|
||||
this.setState({formLoading: false, errorMessage: result.message, defaultDepartmentError: null});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user