fix: keep emoji object reactive

resolves #176
This commit is contained in:
Daniel Roe 2022-11-27 20:51:55 +00:00
parent 7182d69a61
commit 9687330dd4
No known key found for this signature in database
GPG key ID: 22D5008E4F5D9B55

View file

@ -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 || [])),
)