diff options
| author | Ilja <ilja@ilja.space> | 2022-03-21 08:57:59 +0100 |
|---|---|---|
| committer | Ilja <ilja@ilja.space> | 2022-03-21 08:57:59 +0100 |
| commit | 89c409c6d2277170f36e452e8ea316ca45989e3f (patch) | |
| tree | caf1ea2894eeac8820086556ca7298ab0e57d5e7 /src | |
| parent | d0bfd9a80826a7cdb37e1a84cf70ab8a44c3579e (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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/rich_content/rich_content.jsx | 3 |
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: { |
