Fix crashing MediaItem

profile-avatar-switcher
Alex Gleason 2021-09-29 21:12:59 -05:00
rodzic 9ddc54a666
commit 9e6a95a367
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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 = (