Skip to content

Commit 46ad4ce

Browse files
fix: Disable role invite processing in fastboot mode (#4038)
1 parent 5679da2 commit 46ad4ce

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

app/routes/public/role-invites.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
import Route from '@ember/routing/route';
2+
import { inject as service } from '@ember/service';
23

34
export default Route.extend({
4-
redirectionParams: null,
5+
fastboot : service(),
6+
redirectionParams : null,
57
async beforeModel(transition) {
8+
// We don't want to process or transition in fastboot mode
9+
// Since this is only an intermediate page
10+
if (this.fastboot.isFastBoot) {return}
611
const { token } = transition.to.queryParams;
712
const originalEventId = transition.resolvedModels.public.originalId;
813
const payload = {
@@ -31,6 +36,7 @@ export default Route.extend({
3136

3237
},
3338
afterModel() {
39+
if (this.fastboot.isFastBoot) {return}
3440
this.transitionTo('register', this.redirectionParams);
3541
}
3642
});

0 commit comments

Comments
 (0)