mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-14 04:08:19 +00:00
Hierarchy clone fix (#1936)
Signed-off-by: Denis Bykhov <80476319+BykhovDenis@users.noreply.github.com>
This commit is contained in:
parent
df9115b75a
commit
fba7cfb113
@ -423,8 +423,7 @@ export class Hierarchy {
|
||||
const type = {}.toString.call(value).slice(8, -1)
|
||||
if (type === 'Array') {
|
||||
result[key] = this.clone(value)
|
||||
}
|
||||
if (type === 'Object') {
|
||||
} else if (type === 'Object') {
|
||||
const m = Hierarchy.mixinClass(value)
|
||||
const valClone = this.clone(value)
|
||||
result[key] = m !== undefined ? this.as(valClone, m) : valClone
|
||||
|
@ -27,7 +27,6 @@
|
||||
const client = getClient()
|
||||
|
||||
query.query(core.class.Enum, {}, (res) => {
|
||||
console.log(res)
|
||||
enums = res
|
||||
if (selected !== undefined) {
|
||||
selected = enums.find((p) => p._id === selected?._id)
|
||||
|
Loading…
Reference in New Issue
Block a user