forked from potsda.mn/mobilizon
Remove useless cloneDeep when loading event to edit
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
04f902333b
commit
e84492fe4c
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue