mirror of
https://github.com/opensupports/opensupports.git
synced 2025-07-27 15:54:23 +02:00
Ivan - Use departmentId instead of id for edit-department and delete-department [skip ci]
This commit is contained in:
parent
e3f50c28c6
commit
a45f39adab
@ -118,7 +118,7 @@ class AdminPanelDepartments extends React.Component {
|
||||
API.call({
|
||||
path: '/staff/edit-department',
|
||||
data: {
|
||||
id: this.getCurrentDepartment().id,
|
||||
departmentId: this.getCurrentDepartment().id,
|
||||
name: form.name
|
||||
}
|
||||
}).then(() => {
|
||||
@ -150,7 +150,7 @@ class AdminPanelDepartments extends React.Component {
|
||||
API.call({
|
||||
path: '/staff/delete-department',
|
||||
data: {
|
||||
id: this.getCurrentDepartment().id
|
||||
departmentId: this.getCurrentDepartment().id
|
||||
}
|
||||
}).then(() => {
|
||||
this.retrieveDepartments();
|
||||
|
Loading…
x
Reference in New Issue
Block a user