Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
fix: temporary prevent error
Browse files Browse the repository at this point in the history
Needs refactoring
  • Loading branch information
derrabauke committed Dec 20, 2022
1 parent 8a37425 commit 68e6c96
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/protected/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ export default class ProtectedController extends Controller {
const currentRoute = this.router.currentRouteName.replace(/\.index$/, "");

if (this.autostartTour.tours.includes(currentRoute)) {
this.controllerFor(currentRoute).get("tour").close();
// TODO: How to refactor this shit?
this.controllerFor?.get("tour").close();
}
}

Expand Down

0 comments on commit 68e6c96

Please sign in to comment.