Only show scheduled status media attachments if there are any
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
ed0e02da04
commit
3c5a66648b
1 changed files with 6 additions and 4 deletions
|
@ -66,10 +66,12 @@ class ScheduledStatus extends ImmutablePureComponent {
|
||||||
collapsable
|
collapsable
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<AttachmentThumbs
|
{status.get('media_attachments').size > 0 && (
|
||||||
compact
|
<AttachmentThumbs
|
||||||
media={status.get('media_attachments')}
|
compact
|
||||||
/>
|
media={status.get('media_attachments')}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
|
||||||
{status.get('poll') && <PollPreview poll={status.get('poll')} />}
|
{status.get('poll') && <PollPreview poll={status.get('poll')} />}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue