Remove useless cloneDeep when loading event to edit

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2021-05-17 18:20:53 +02:00
parent 04f902333b
commit e84492fe4c
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

View file

@ -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;