From ba047c2ea565a784cb36c0fce0105661612b68aa Mon Sep 17 00:00:00 2001 From: Tom Theisel Date: Sun, 24 Jul 2022 06:34:25 +0100 Subject: [PATCH] fix: `components.type` to be an empty object --- component/lib/PortableText.astro | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/component/lib/PortableText.astro b/component/lib/PortableText.astro index b7894cf..c0b89eb 100644 --- a/component/lib/PortableText.astro +++ b/component/lib/PortableText.astro @@ -57,7 +57,7 @@ const { const components = mergeComponents( { - type: UnknownType, + type: {}, unknownType: UnknownType, block: { h1: Block, @@ -127,7 +127,7 @@ emitter.on("unknownList", (listItem: string) => { }); emitter.on("unknownListItem", (listItem: string) => { - missingComponentHandler(unknownListStyleWarning(listItem), { + missingComponentHandler(unknownListItemStyleWarning(listItem), { nodeType: NodeType.LIST_ITEM_STYLE, type: listItem, });