fix: bulk delete item categories issue.

This commit is contained in:
Ahmed Bouhuolia
2020-12-02 18:44:23 +02:00
parent 72bf3096bb
commit c2a87f5ec1
5 changed files with 9 additions and 7 deletions

View File

@@ -97,7 +97,8 @@ export default persistReducer({
'pageSubtitle',
'pageHint',
'preferencesPageTitle',
'topbarEditViewId'
'topbarEditViewId',
'backLink'
],
storage,
}, reducerInstance);

View File

@@ -78,7 +78,7 @@ export const deleteItemCategory = (id) => {
export const deleteBulkItemCategories = ({ ids }) => {
return (dispatch) =>
new Promise((resolve, reject) => {
ApiService.delete(`item_categories/bulk`, { params: { ids } })
ApiService.delete(`item_categories`, { params: { ids } })
.then((response) => {
dispatch({
type: t.ITEM_CATEGORIES_BULK_DELETE,