From 88ad5033a876b648c7e07d222cf808bc71273e49 Mon Sep 17 00:00:00 2001 From: Ilja Date: Mon, 21 Mar 2022 09:49:06 +0100 Subject: [PATCH] Use empty array for emji instead Instead of relying on a key that isn't actually usefull, I just provide an empty array directly. --- src/components/report/report.vue | 2 +- src/components/rich_content/rich_content.jsx | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/report/report.vue b/src/components/report/report.vue index c7766f8444..1dc7320301 100644 --- a/src/components/report/report.vue +++ b/src/components/report/report.vue @@ -31,7 +31,7 @@
{{ $t('report.reported_statuses') }} diff --git a/src/components/rich_content/rich_content.jsx b/src/components/rich_content/rich_content.jsx index 7096ca4928..46bc661afb 100644 --- a/src/components/rich_content/rich_content.jsx +++ b/src/components/rich_content/rich_content.jsx @@ -42,8 +42,7 @@ export default Vue.component('RichContent', { // Emoji object, as in status.emojis, note the "s" at the end... emoji: { required: true, - type: Array, - default: () => [] + type: Array }, // Whether to handle links or not (posts: yes, everything else: no) handleLinks: {