diff --git a/components/content/ContentRich.setup.ts b/components/content/ContentRich.setup.ts index ec2687fdf..88c1bfdb5 100644 --- a/components/content/ContentRich.setup.ts +++ b/components/content/ContentRich.setup.ts @@ -10,10 +10,8 @@ const props = defineProps<{ emojis?: Emoji[] }>() -const emojiObject = emojisArrayToObject(props.emojis || []) - export default () => h( 'span', { class: 'content-rich' }, - contentToVNode(props.content, emojiObject), + contentToVNode(props.content, emojisArrayToObject(props.emojis || [])), )