From cb1e95cd3d16c1550596cee33ef361402d1bec0b Mon Sep 17 00:00:00 2001 From: Jarek Radosz Date: Wed, 12 Apr 2023 20:05:52 +0200 Subject: [PATCH] FIX: Educational composer messages regressed in 788dc0a (#21082) Tests coming in another PR --- .../javascripts/discourse/app/components/composer-messages.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/app/components/composer-messages.js b/app/assets/javascripts/discourse/app/components/composer-messages.js index e4936b6410e..81aae9052d4 100644 --- a/app/assets/javascripts/discourse/app/components/composer-messages.js +++ b/app/assets/javascripts/discourse/app/components/composer-messages.js @@ -272,13 +272,13 @@ export default class ComposerMessages extends Component { this.set("checkedMessages", true); - for (const msg of messages) { + messages.forEach((msg) => { if (msg.wait_for_typing) { this.queuedForTyping.addObject(msg); } else { this.popup(msg); } - } + }); } @action