Fix model array (#3421)

This commit is contained in:
Denis Bykhov
2023-06-09 21:47:40 +07:00
committed by GitHub
parent fec129ee31
commit cab5c62b65
+2 -1
View File
@@ -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
}