ASC.People: selectors: added deep clone at toEmployeeWrapper

This commit is contained in:
Andrey Savihin 2019-09-12 10:04:22 +03:00
parent 5492cad9f5
commit 936e7cbb40

View File

@ -1,4 +1,4 @@
import { find, filter } from "lodash";
import { find, filter, cloneDeep } from "lodash";
import { EmployeeActivationStatus, EmployeeStatus } from "../../helpers/constants";
export function getSelectedUser(selection, userId) {
@ -141,5 +141,5 @@ export function toEmployeeWrapper(profile) {
contacts: []
};
return { ...emptyData, ...profile };
return cloneDeep({ ...emptyData, ...profile });
}