A platform for community discussion. Free, open, simple.
DEV: await missing on recursive stateFor call in chat drawer router (#38428)
Gabriel Grubba06a5e45a5306
diff --git a/plugins/chat/assets/javascripts/discourse/services/chat-drawer-router.js b/plugins/chat/assets/javascripts/discourse/services/chat-drawer-router.jsindex 8a95bfbeb38..10c62650a26 100644--- a/plugins/chat/assets/javascripts/discourse/services/chat-drawer-router.js+++ b/plugins/chat/assets/javascripts/discourse/services/chat-drawer-router.js@@ -343,7 +343,7 @@ export default class ChatDrawerRouter extends Service {const redirectedRoute = this.drawerRoute.redirect?.(this);if (redirectedRoute) {- this.stateFor(this.#routeFromURL(redirectedRoute));+ await this.stateFor(this.#routeFromURL(redirectedRoute));}}