From 89c409c6d2277170f36e452e8ea316ca45989e3f Mon Sep 17 00:00:00 2001 From: Ilja Date: Mon, 21 Mar 2022 08:57:59 +0100 Subject: [PATCH] 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. --- src/components/rich_content/rich_content.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: {