FIX: check for `options` in dismissRead (#26065)

This commit is contained in:
Kris 2024-03-06 16:45:13 -05:00 committed by GitHub
parent 819bc63c47
commit 6f5356669e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ export default class BulkSelectHelper {
promise.then((result) => {
if (result?.topic_ids) {
if (options.private_message_inbox) {
if (options?.private_message_inbox) {
this.pmTopicTrackingState.removeTopics(result.topic_ids);
} else {
this.topicTrackingState.removeTopics(result.topic_ids);