This commit is contained in:
elforjani3
2020-12-02 18:49:50 +02:00
10 changed files with 31 additions and 12 deletions

View File

@@ -35,6 +35,7 @@ export const getAccountsListFactory = () =>
return treeToList(accountsTree, {
idFieldKey: 'id',
childrenFieldKey: 'children',
nodeFilter: (node, depth) => accountsItems[node.id],
nodeMapper: (node, depth) => {
const account = accountsItems[node.id];
const spaceChar = String.fromCharCode(160);

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,