Add default array for RichContent emoji

Reports don't currently return an emoji key. There's an MR to add it, but in case something doesn't return this key, we now have a default empty array.
This commit is contained in:
Ilja 2022-03-21 08:57:59 +01:00
parent d0bfd9a808
commit 89c409c6d2

View file

@ -42,7 +42,8 @@ export default Vue.component('RichContent', {
// Emoji object, as in status.emojis, note the "s" at the end... // Emoji object, as in status.emojis, note the "s" at the end...
emoji: { emoji: {
required: true, required: true,
type: Array type: Array,
default: () => []
}, },
// Whether to handle links or not (posts: yes, everything else: no) // Whether to handle links or not (posts: yes, everything else: no)
handleLinks: { handleLinks: {