mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-03-21 09:35:44 -05:00
Teams: Redirect to homepage when deleting teams
Some checks are pending
Node.js CI / build (22.x) (push) Waiting to run
Some checks are pending
Node.js CI / build (22.x) (push) Waiting to run
This commit is contained in:
parent
3c5007fca0
commit
b9cb3f356a
|
|
@ -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]);
|
||||
|
|
|
|||
|
|
@ -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('../');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user