mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 04:48:53 +00:00
fix(core): unexpected redirect to expired page after accepting invitation (#10257)
Co-authored-by: EYHN <cneyhn@gmail.com>
This commit is contained in:
@@ -24,6 +24,7 @@ export class AcceptInviteService extends Service {
|
||||
) {
|
||||
super();
|
||||
}
|
||||
inviteId$ = new LiveData<string | undefined>(undefined);
|
||||
inviteInfo$ = new LiveData<InviteInfo | undefined>(undefined);
|
||||
accepted$ = new LiveData<boolean>(false);
|
||||
loading$ = new LiveData(false);
|
||||
@@ -61,6 +62,7 @@ export class AcceptInviteService extends Service {
|
||||
}),
|
||||
catchErrorInto(this.error$),
|
||||
onStart(() => {
|
||||
this.inviteId$.setValue(inviteId);
|
||||
this.loading$.setValue(true);
|
||||
this.inviteInfo$.setValue(undefined);
|
||||
this.accepted$.setValue(false);
|
||||
|
||||
Reference in New Issue
Block a user