From e90b8c74bf49ad0165d4827712eaa6f769833d81 Mon Sep 17 00:00:00 2001 From: Denis Bykhov Date: Mon, 13 Feb 2023 08:35:29 +0600 Subject: [PATCH] Fix list props (#2623) Signed-off-by: Denis Bykhov --- plugins/view-resources/src/components/list/ListItem.svelte | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 } }