From cab5c62b656b3a5a46e8ec42a2258c00a7f24d42 Mon Sep 17 00:00:00 2001 From: Denis Bykhov Date: Fri, 9 Jun 2023 20:47:40 +0600 Subject: [PATCH] Fix model array (#3421) --- packages/core/src/objvalue.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/core/src/objvalue.ts b/packages/core/src/objvalue.ts index 819e582f0e..8b9733bdfc 100644 --- a/packages/core/src/objvalue.ts +++ b/packages/core/src/objvalue.ts @@ -1,6 +1,7 @@ import { PlatformError, Severity, Status } from '@hcengineering/platform' import { Doc } from './classes' import core from './component' +import justClone from 'just-clone' /** * @public @@ -59,7 +60,7 @@ export function setObjectValue (key: string, doc: Doc, newValue: any): void { value = lvalue } } - value[last] = newValue + value[last] = justClone(newValue) return value }