mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-23 22:12:44 +03:00
Fix model array (#3421)
This commit is contained in:
parent
fec129ee31
commit
cab5c62b65
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user