Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit 1a00cb3

Browse files
committed
FIX: Don't error when navigating from AI Bot topic to regular
1 parent cf220c5 commit 1a00cb3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

assets/javascripts/discourse/connectors/topic-map-participants-after/ai-conversation-invite.gjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ export default class AiConversationInvite extends Component {
1818

1919
get participants() {
2020
const participants = [
21-
...this.header.topicInfo.details.allowed_users,
22-
...this.header.topicInfo.details.allowed_groups,
21+
...(this.header.topicInfo.details?.allowed_users ?? []),
22+
...(this.header.topicInfo.details?.allowed_groups ?? []),
2323
];
2424
return participants;
2525
}

0 commit comments

Comments
 (0)