mirror of
https://github.com/opensupports/opensupports.git
synced 2025-07-28 00:04:31 +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({
|
API.call({
|
||||||
path: '/staff/edit-department',
|
path: '/staff/edit-department',
|
||||||
data: {
|
data: {
|
||||||
id: this.getCurrentDepartment().id,
|
departmentId: this.getCurrentDepartment().id,
|
||||||
name: form.name
|
name: form.name
|
||||||
}
|
}
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
@ -150,7 +150,7 @@ class AdminPanelDepartments extends React.Component {
|
|||||||
API.call({
|
API.call({
|
||||||
path: '/staff/delete-department',
|
path: '/staff/delete-department',
|
||||||
data: {
|
data: {
|
||||||
id: this.getCurrentDepartment().id
|
departmentId: this.getCurrentDepartment().id
|
||||||
}
|
}
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
this.retrieveDepartments();
|
this.retrieveDepartments();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user