Teams: Redirect to homepage when deleting teams
Some checks are pending
Node.js CI / build (22.x) (push) Waiting to run

This commit is contained in:
Mia 2025-07-24 01:51:38 -05:00
parent 3c5007fca0
commit b9cb3f356a
2 changed files with 2 additions and 2 deletions

View File

@ -987,8 +987,8 @@ function toId() {
team.privacy = data.privacy;
team.team = data.team;
team.loaded = true;
Storage.saveTeams();
callback(team);
Storage.saveTeams();
var entry = app.loadingTeamQueue.shift();
if (entry) {
app.loadTeam(entry[0], entry[1]);

View File

@ -424,7 +424,7 @@ export class TeamViewer extends preact.Component<PageProps> {
`Error while deleting team. Please try again later.`
);
if (result.success) {
location.replace('');
location.replace('../');
}
}
});