From 7440611cd1a8f3eae770477cd493c92e264ee56a Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Thu, 24 Sep 2026 13:47:36 +0000 Subject: [PATCH] Resolve `no-unsafe-optional-chaining` JS lint warnings (#40594) --- app/javascript/mastodon/features/account_gallery/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/javascript/mastodon/features/account_gallery/index.tsx b/app/javascript/mastodon/features/account_gallery/index.tsx index a4111001ab9..572ea7be822 100644 --- a/app/javascript/mastodon/features/account_gallery/index.tsx +++ b/app/javascript/mastodon/features/account_gallery/index.tsx @@ -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 + status.get('media_attachments') as ImmutableList ).map((media) => media.set('status', status)), ); }