Skip to content

Commit

Permalink
fix: components.type to be an empty object
Browse files Browse the repository at this point in the history
  • Loading branch information
theisel committed Jul 24, 2022
1 parent f57de21 commit ba047c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions component/lib/PortableText.astro
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const {
const components = mergeComponents(
{
type: UnknownType,
type: {},
unknownType: UnknownType,
block: {
h1: Block,
Expand Down Expand Up @@ -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,
});
Expand Down

0 comments on commit ba047c2

Please sign in to comment.