narrow_banner: Fix TypeScript noUncheckedIndexedAccess errors.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2024-05-30 10:07:59 -07:00
parent b953584d45
commit ab3110817f
1 changed files with 1 additions and 1 deletions

View File

@ -292,7 +292,7 @@ function pick_empty_narrow_banner(): NarrowBannerData {
}; };
} }
const user_ids = people.emails_strings_to_user_ids_array(first_operand); const user_ids = people.emails_strings_to_user_ids_array(first_operand);
assert(user_ids !== undefined); assert(user_ids?.[0] !== undefined);
if ( if (
realm.realm_private_message_policy === realm.realm_private_message_policy ===
settings_config.private_message_policy_values.disabled.code && settings_config.private_message_policy_values.disabled.code &&