A platform for community discussion. Free, open, simple.
FIX: recover by showing drawer index on 404 (#21839)
Joffrey JAFFEUX906e053f32f0
diff --git a/plugins/chat/assets/javascripts/discourse/services/chat-drawer-router.js b/plugins/chat/assets/javascripts/discourse/services/chat-drawer-router.jsindex bddb9df34b7..927c03210fe 100644--- a/plugins/chat/assets/javascripts/discourse/services/chat-drawer-router.js+++ b/plugins/chat/assets/javascripts/discourse/services/chat-drawer-router.js@@ -75,12 +75,6 @@ export default class ChatDrawerRouter extends Service {}this.drawerRoute = ROUTES[route.name];-- if (!this.drawerRoute) {- // TODO (joffrey) maybe we should implement the equivalent of a 404 here?- return;- }-this.params = this.drawerRoute?.extractParams?.(route) || route.params;this.component = this.drawerRoute?.name || ChatDrawerIndex;