Only show scheduled status media attachments if there are any

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
party-hat
marcin mikołajczak 2022-01-08 13:01:44 +01:00
rodzic ed0e02da04
commit 3c5a66648b
1 zmienionych plików z 6 dodań i 4 usunięć

Wyświetl plik

@ -66,10 +66,12 @@ class ScheduledStatus extends ImmutablePureComponent {
collapsable
/>
<AttachmentThumbs
compact
media={status.get('media_attachments')}
/>
{status.get('media_attachments').size > 0 && (
<AttachmentThumbs
compact
media={status.get('media_attachments')}
/>
)}
{status.get('poll') && <PollPreview poll={status.get('poll')} />}