fix: spreading

pull/16017/head
paoloricciuti 4 months ago
parent 68c30bca4c
commit 04768e4b2b

@ -87,19 +87,15 @@ export function RegularElement(node, context) {
'=', '=',
b.id('$$payload.select_value'), b.id('$$payload.select_value'),
b.member( b.member(
b.call( build_spread_object(
'$.spread_attributes', node,
build_spread_object( node.attributes.filter(
node, (attribute) =>
node.attributes.filter( attribute.type === 'Attribute' ||
(attribute) => attribute.type === 'BindDirective' ||
attribute.type === 'Attribute' || attribute.type === 'SpreadAttribute'
attribute.type === 'BindDirective' ||
attribute.type === 'SpreadAttribute'
),
context
), ),
b.null context
), ),
'value', 'value',
false, false,

@ -211,19 +211,15 @@ export function build_element_attributes(node, context) {
'$.maybe_selected', '$.maybe_selected',
b.id('$$payload'), b.id('$$payload'),
b.member( b.member(
b.call( build_spread_object(
'$.spread_attributes', node,
build_spread_object( node.attributes.filter(
node, (attribute) =>
node.attributes.filter( attribute.type === 'Attribute' ||
(attribute) => attribute.type === 'BindDirective' ||
attribute.type === 'Attribute' || attribute.type === 'SpreadAttribute'
attribute.type === 'BindDirective' ||
attribute.type === 'SpreadAttribute'
),
context
), ),
b.null context
), ),
'value', 'value',
false, false,

Loading…
Cancel
Save