From e84492fe4c2b2b5b3760d0c6f66d35b6d0a3010f Mon Sep 17 00:00:00 2001
From: Thomas Citharel <tcit@tcit.fr>
Date: Mon, 17 May 2021 18:20:53 +0200
Subject: [PATCH] Remove useless cloneDeep when loading event to edit

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
---
 js/src/views/Event/Edit.vue | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/js/src/views/Event/Edit.vue b/js/src/views/Event/Edit.vue
index 88e4d3fc3..3a748cc4d 100644
--- a/js/src/views/Event/Edit.vue
+++ b/js/src/views/Event/Edit.vue
@@ -486,7 +486,6 @@ import "intersection-observer";
 import { CONFIG } from "../../graphql/config";
 import { IConfig } from "../../types/config.model";
 import { ApolloCache, FetchResult, InMemoryCache } from "@apollo/client/core";
-import { cloneDeep } from "@apollo/client/utilities";
 
 const DEFAULT_LIMIT_NUMBER_OF_PLACES = 10;
 
@@ -513,7 +512,7 @@ const DEFAULT_LIMIT_NUMBER_OF_PLACES = 10;
         };
       },
       update(data) {
-        return new EventModel(cloneDeep(data.event));
+        return new EventModel(data.event);
       },
       skip() {
         return !this.eventId;