aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlja <ilja@ilja.space>2022-03-21 08:57:59 +0100
committerIlja <ilja@ilja.space>2022-03-21 08:57:59 +0100
commit89c409c6d2277170f36e452e8ea316ca45989e3f (patch)
treecaf1ea2894eeac8820086556ca7298ab0e57d5e7
parentd0bfd9a80826a7cdb37e1a84cf70ab8a44c3579e (diff)
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.
-rw-r--r--src/components/rich_content/rich_content.jsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/rich_content/rich_content.jsx b/src/components/rich_content/rich_content.jsx
index 46bc661a..7096ca49 100644
--- a/src/components/rich_content/rich_content.jsx
+++ b/src/components/rich_content/rich_content.jsx
@@ -42,7 +42,8 @@ export default Vue.component('RichContent', {
// Emoji object, as in status.emojis, note the "s" at the end...
emoji: {
required: true,
- type: Array
+ type: Array,
+ default: () => []
},
// Whether to handle links or not (posts: yes, everything else: no)
handleLinks: {