Skip to content

Commit

Permalink
small change in event name of cloning
Browse files Browse the repository at this point in the history
  • Loading branch information
varsha766 committed May 26, 2022
1 parent c40b766 commit f9846f9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/views/admin/Events.vue
Original file line number Diff line number Diff line change
Expand Up @@ -947,7 +947,7 @@ export default {
this.isProjectClonning = true;
this.project = { ...project };
if (this.isProjectClonning) {
this.project.projectName = this.project._id + "_copy";
this.project.projectName = Date.now() + "_copy";
this.project._id = "";
this.project.slug = "";
this.project.investorsCount = 0;
Expand Down Expand Up @@ -996,8 +996,11 @@ export default {
this.projectStatus = project.projectStatus;
this.eventActionList = project.actions;
this.eventActionList = this.eventActionList.map(
({ _id, eventId, __v, ...rest }) => {
return rest;
(action) => {
delete action["_id"]
delete action["eventId"]
delete action["__v"]
return action;
}
);
let index = this.eventActionList
Expand Down

0 comments on commit f9846f9

Please sign in to comment.