fix Vue warning from MkCustomEmoji.vue

This commit is contained in:
Hazelnoot 2025-04-02 21:02:20 -04:00
parent 5239d59f44
commit 7f577bd0a9

View file

@ -53,7 +53,7 @@ const props = defineProps<{
fallbackToImage?: boolean;
}>();
const react = inject(DI.mfmEmojiReactCallback);
const react = inject(DI.mfmEmojiReactCallback, null);
const customEmojiName = computed(() => (props.name[0] === ':' ? props.name.substring(1, props.name.length - 1) : props.name).replace('@.', ''));
const isLocal = computed(() => !props.host && (customEmojiName.value.endsWith('@.') || !customEmojiName.value.includes('@')));