Skip to content

Commit

Permalink
fix units
Browse files Browse the repository at this point in the history
  • Loading branch information
KevLehman committed Dec 6, 2024
1 parent 22edb80 commit 2899c37
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const afterRemoveDepartment = async (options: {
});
await Promise.all([
LivechatDepartment.removeDepartmentFromForwardListById(department._id),
LivechatUnit.removeDepartmentFromUnit(department.parentId),
...(department.parentId ? [LivechatUnit.removeDepartmentFromUnit(department.parentId)] : []),
]);

return options;
Expand Down

0 comments on commit 2899c37

Please sign in to comment.