kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Fix crashing MediaItem
rodzic
9ddc54a666
commit
9e6a95a367
|
@ -119,7 +119,7 @@ class MediaItem extends ImmutablePureComponent {
|
|||
</div>
|
||||
);
|
||||
} else if (attachment.get('type') === 'audio') {
|
||||
const remoteURL = attachment.get('remote_url');
|
||||
const remoteURL = attachment.get('remote_url') || '';
|
||||
const fileExtensionLastIndex = remoteURL.lastIndexOf('.');
|
||||
const fileExtension = remoteURL.substr(fileExtensionLastIndex + 1).toUpperCase();
|
||||
thumbnail = (
|
||||
|
|
Ładowanie…
Reference in New Issue