mirror of
https://github.com/hcengineering/platform.git
synced 2025-06-08 00:37:42 +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)
|
const type = {}.toString.call(value).slice(8, -1)
|
||||||
if (type === 'Array') {
|
if (type === 'Array') {
|
||||||
result[key] = this.clone(value)
|
result[key] = this.clone(value)
|
||||||
}
|
} else if (type === 'Object') {
|
||||||
if (type === 'Object') {
|
|
||||||
const m = Hierarchy.mixinClass(value)
|
const m = Hierarchy.mixinClass(value)
|
||||||
const valClone = this.clone(value)
|
const valClone = this.clone(value)
|
||||||
result[key] = m !== undefined ? this.as(valClone, m) : valClone
|
result[key] = m !== undefined ? this.as(valClone, m) : valClone
|
||||||
|
@ -27,7 +27,6 @@
|
|||||||
const client = getClient()
|
const client = getClient()
|
||||||
|
|
||||||
query.query(core.class.Enum, {}, (res) => {
|
query.query(core.class.Enum, {}, (res) => {
|
||||||
console.log(res)
|
|
||||||
enums = res
|
enums = res
|
||||||
if (selected !== undefined) {
|
if (selected !== undefined) {
|
||||||
selected = enums.find((p) => p._id === selected?._id)
|
selected = enums.find((p) => p._id === selected?._id)
|
||||||
|
Loading…
Reference in New Issue
Block a user