FIX: error when quoting message into topic (#21114)

This error was only happening on mobile, note we also already have a (mobile) test (plugins/chat/spec/system/transcript_spec.rb:184) for this which was passing as it's only happening at a specific speed. I don't want to complicate the test too much for this case, will reconsider if it regresses again.
This commit is contained in:
Joffrey JAFFEUX 2023-04-17 17:14:51 +02:00 committed by GitHub
parent 430d6308a8
commit 5b187ad25e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ export default class ChatChannelPane extends Service {
@tracked sendingLoading = false;
get selectedMessageIds() {
return this.chat.activeChannel.selectedMessages.mapBy("id");
return this.chat.activeChannel?.selectedMessages?.mapBy("id") || [];
}
get composerService() {