From 51f4565c786472634c89094ced753f268d589e9a Mon Sep 17 00:00:00 2001 From: atsu1125 Date: Tue, 5 Mar 2024 12:12:34 +0900 Subject: [PATCH] fix: mfm-cheat-sheet if no custom emoji --- src/client/pages/mfm-cheat-sheet.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/pages/mfm-cheat-sheet.vue b/src/client/pages/mfm-cheat-sheet.vue index 6d9983b959..c136ff0e2e 100644 --- a/src/client/pages/mfm-cheat-sheet.vue +++ b/src/client/pages/mfm-cheat-sheet.vue @@ -33,7 +33,7 @@ export default defineComponent({ [ 'hashtag', '#test' ], [ 'url', `https://example.com` ], [ 'link', `[${this.$ts._mfm.dummy}](https://example.com)` ], - [ 'emoji', `:${this.$instance.emojis[0].name}:` ], + [ 'emoji', this.$instance.emojis.length ? `:${this.$instance.emojis[0].name}:` : `:emojiname:` ], [ 'userEmoji', `:@${this.$i.username}:` ], [ 'bold', `**${this.$ts._mfm.dummy}**` ], [ 'small', `${this.$ts._mfm.dummy}` ],