Fix model array (#3421)

This commit is contained in:
Denis Bykhov 2023-06-09 20:47:40 +06:00 committed by GitHub
parent fec129ee31
commit cab5c62b65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
}