diff --git a/plugins/view-resources/src/components/list/ListItem.svelte b/plugins/view-resources/src/components/list/ListItem.svelte index d307e3fd1d..b8a0b4c922 100644 --- a/plugins/view-resources/src/components/list/ListItem.svelte +++ b/plugins/view-resources/src/components/list/ListItem.svelte @@ -67,7 +67,11 @@ } function joinProps (attribute: AttributeModel, object: Doc, props: Record) { - 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 } }