Use empty array for emji instead
Instead of relying on a key that isn't actually usefull, I just provide an empty array directly.
This commit is contained in:
parent
89c409c6d2
commit
88ad5033a8
2 changed files with 2 additions and 3 deletions
|
@ -31,7 +31,7 @@
|
||||||
<RichContent
|
<RichContent
|
||||||
class="report-content"
|
class="report-content"
|
||||||
:html="report.content"
|
:html="report.content"
|
||||||
:emoji="report.emojis"
|
:emoji="[]"
|
||||||
/>
|
/>
|
||||||
<div v-if="report.statuses.length">
|
<div v-if="report.statuses.length">
|
||||||
<small>{{ $t('report.reported_statuses') }}</small>
|
<small>{{ $t('report.reported_statuses') }}</small>
|
||||||
|
|
|
@ -42,8 +42,7 @@ 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: {
|
||||||
|
|
Loading…
Reference in a new issue