mirror of
https://github.com/hcengineering/platform.git
synced 2025-01-24 20:40:59 +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>) {
|
||||
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) {
|
||||
return { ...clearAttributeProps, type: attribute.attribute.type, ...props }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user