mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-15 12:55:59 +00: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 { PlatformError, Severity, Status } from '@hcengineering/platform'
|
||||||
import { Doc } from './classes'
|
import { Doc } from './classes'
|
||||||
import core from './component'
|
import core from './component'
|
||||||
|
import justClone from 'just-clone'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @public
|
* @public
|
||||||
@ -59,7 +60,7 @@ export function setObjectValue (key: string, doc: Doc, newValue: any): void {
|
|||||||
value = lvalue
|
value = lvalue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
value[last] = newValue
|
value[last] = justClone(newValue)
|
||||||
return value
|
return value
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user