fix: delete and bulk delete accounts.

fix: activate and inactivate accounts.
This commit is contained in:
Ahmed Bouhuolia
2020-12-03 12:20:44 +02:00
parent 353cc2aece
commit 0359003d3a
7 changed files with 85 additions and 54 deletions

View File

@@ -256,7 +256,7 @@ export const flatToNestedArray = (
if (!item[config.parentId]) {
nestedArray.push(item);
}
if (parentItemId) {
if (parentItemId && map[parentItemId]) {
map[parentItemId].children.push(item);
}
});