Fix editing subproperties of an event

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2021-06-27 18:17:24 +02:00
parent 8ecfd111c5
commit bf44d6d2b3
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

View file

@ -486,6 +486,7 @@ import "intersection-observer";
import { CONFIG } from "../../graphql/config";
import { IConfig } from "../../types/config.model";
import { ApolloCache, FetchResult } from "@apollo/client/core";
import cloneDeep from "lodash/cloneDeep";
const DEFAULT_LIMIT_NUMBER_OF_PLACES = 10;
@ -645,7 +646,7 @@ export default class EditEvent extends Vue {
} else {
this.event = {
...this.event,
options: this.event.options,
options: cloneDeep(this.event.options),
description: this.event.description || "",
};
}