From 997a6c85bd03aa9eab033607a106264e18fc4709 Mon Sep 17 00:00:00 2001 From: daszgfz Date: Wed, 27 Nov 2019 12:19:50 -0500 Subject: [PATCH] update --- src/compiler/compile/utils/get_slot_data.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compiler/compile/utils/get_slot_data.ts b/src/compiler/compile/utils/get_slot_data.ts index ae9f40a65f..a118d52023 100644 --- a/src/compiler/compile/utils/get_slot_data.ts +++ b/src/compiler/compile/utils/get_slot_data.ts @@ -9,13 +9,13 @@ export default function get_slot_data(values: Map, block: Blo properties: Array.from(values.values()) .filter(attribute => attribute.name !== 'name') .map(attribute => { - const value = get_value(attribute, block); + const value = get_value(block, attribute); return p`${attribute.name}: ${value}`; }) }; } -function get_value(attribute: Attribute, block: Block = null) { +function get_value(block: Block, attribute: Attribute) { if (attribute.is_true) return x`true`; if (attribute.chunks.length === 0) return x`""`;