Skip to content

Commit

Permalink
DEV: Prevent error when chat is opened
Browse files Browse the repository at this point in the history
  • Loading branch information
jumagura committed Jan 25, 2024
1 parent f3448b5 commit 0f7f4e2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions assets/javascripts/discourse/initializers/sidebars.js.es6
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ export default {
if (!transition.from) {
return;
}
if (transition.from === transition.to) {
return;
}

const routeInfos = transition.router.currentRouteInfos;
const routeNames = routeInfos.map((ri) => ri.name);
Expand Down

0 comments on commit 0f7f4e2

Please sign in to comment.