forked from potsda.mn/mobilizon
Fix editing subproperties of an event
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
8ecfd111c5
commit
bf44d6d2b3
|
@ -486,6 +486,7 @@ import "intersection-observer";
|
||||||
import { CONFIG } from "../../graphql/config";
|
import { CONFIG } from "../../graphql/config";
|
||||||
import { IConfig } from "../../types/config.model";
|
import { IConfig } from "../../types/config.model";
|
||||||
import { ApolloCache, FetchResult } from "@apollo/client/core";
|
import { ApolloCache, FetchResult } from "@apollo/client/core";
|
||||||
|
import cloneDeep from "lodash/cloneDeep";
|
||||||
|
|
||||||
const DEFAULT_LIMIT_NUMBER_OF_PLACES = 10;
|
const DEFAULT_LIMIT_NUMBER_OF_PLACES = 10;
|
||||||
|
|
||||||
|
@ -645,7 +646,7 @@ export default class EditEvent extends Vue {
|
||||||
} else {
|
} else {
|
||||||
this.event = {
|
this.event = {
|
||||||
...this.event,
|
...this.event,
|
||||||
options: this.event.options,
|
options: cloneDeep(this.event.options),
|
||||||
description: this.event.description || "",
|
description: this.event.description || "",
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue