mirror of
https://github.com/mastodon/mastodon.git
synced 2026-09-27 17:07:48 -05:00
Resolve no-unsafe-optional-chaining JS lint warnings (#40594)
This commit is contained in:
@@ -73,9 +73,10 @@ const selectGalleryTimeline = createAppSelector(
|
||||
if (isList(statusIds)) {
|
||||
for (const statusId of statusIds) {
|
||||
const status = statuses.get(statusId);
|
||||
if (!status) continue;
|
||||
items = items.concat(
|
||||
(
|
||||
status?.get('media_attachments') as ImmutableList<MediaAttachment>
|
||||
status.get('media_attachments') as ImmutableList<MediaAttachment>
|
||||
).map((media) => media.set('status', status)),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user