From 9687330dd43d798efe11c0e0d4e1f81fb3c8ef36 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Sun, 27 Nov 2022 20:51:55 +0000 Subject: [PATCH] fix: keep emoji object reactive resolves #176 --- components/content/ContentRich.setup.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 || [])), )