DEV: Revert "DEV: Update replaceWith on Route (#22645)" (#22693)

This reverts commit 33db93c9b2.
This commit is contained in:
Isaac Janzen
2023-07-19 10:47:31 -05:00
committed by GitHub
parent 341acacba8
commit 1561e51a13
37 changed files with 52 additions and 134 deletions

View File

@@ -1,11 +1,8 @@
import DiscourseRoute from "discourse/routes/discourse";
import { inject as service } from "@ember/service";
export default DiscourseRoute.extend({
router: service(),
beforeModel() {
const appModel = this.modelFor("wizard");
this.router.replaceWith("wizard.step", appModel.start);
this.replaceWith("wizard.step", appModel.start);
},
});