diff --git a/src/app/core/entity/model/entity.ts b/src/app/core/entity/model/entity.ts index fd4c301f0b..2f21c09b42 100644 --- a/src/app/core/entity/model/entity.ts +++ b/src/app/core/entity/model/entity.ts @@ -20,7 +20,6 @@ import { EntitySchema } from "../schema/entity-schema"; import { DatabaseField } from "../database-field.decorator"; import { getWarningLevelColor, WarningLevel } from "./warning-level"; import { IconName } from "@fortawesome/fontawesome-svg-core"; -import { cloneDeep } from "lodash-es"; /** * This represents a static class of type . @@ -302,7 +301,7 @@ export class Entity { */ public copy(generateNewId: boolean = false): this { const other = new (this.getConstructor())(this._id); - Object.assign(other, cloneDeep(this)); + Object.assign(other, this); if (generateNewId) { delete other._rev;