mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-24 16:43:48 +00:00
rdv: fix adding thirdparty when creating a rdv
This commit is contained in:
@@ -17,19 +17,18 @@ const removeIdFromValue = (string, id) => {
|
||||
return str;
|
||||
};
|
||||
|
||||
// const activity = {
|
||||
// accompanyingPeriod: window.accompanyingPeriod,
|
||||
// persons: [],
|
||||
// thirdParties: [],
|
||||
// users: []
|
||||
// }; // TODO: get this object from window.activity ?
|
||||
|
||||
console.log(window.entity)
|
||||
/*
|
||||
* Assign missing keys for the ConcernedGroups component
|
||||
*/
|
||||
const mapEntity = (entity) => {
|
||||
Object.assign(entity, {thirdParties: entity.professionals, users: entity.invites});
|
||||
return entity;
|
||||
};
|
||||
|
||||
const store = createStore({
|
||||
strict: debug,
|
||||
state: {
|
||||
activity: window.entity,
|
||||
activity: mapEntity(window.entity),
|
||||
},
|
||||
mutations: {
|
||||
|
||||
|
Reference in New Issue
Block a user