mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-14 12:25:17 +00:00
Fix list props (#2623)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
parent
f20bdccbbe
commit
e90b8c74bf
@ -67,7 +67,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function joinProps (attribute: AttributeModel, object: Doc, props: Record<string, any>) {
|
function joinProps (attribute: AttributeModel, object: Doc, props: Record<string, any>) {
|
||||||
const { listProps, ...clearAttributeProps } = attribute.props as any
|
let clearAttributeProps = attribute.props
|
||||||
|
if (attribute.props?.listProps !== undefined) {
|
||||||
|
const { listProps, ...other } = attribute.props as any
|
||||||
|
clearAttributeProps = other
|
||||||
|
}
|
||||||
if (attribute.attribute?.type._class === core.class.EnumOf) {
|
if (attribute.attribute?.type._class === core.class.EnumOf) {
|
||||||
return { ...clearAttributeProps, type: attribute.attribute.type, ...props }
|
return { ...clearAttributeProps, type: attribute.attribute.type, ...props }
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user