Go to list page if deleting with empty history (#6203)

This commit is contained in:
WithoutPants
2025-10-29 11:12:25 +11:00
committed by GitHub
parent 648875995c
commit 1dccecc39c
8 changed files with 25 additions and 7 deletions

View File

@@ -47,6 +47,7 @@ import { FavoriteIcon } from "src/components/Shared/FavoriteIcon";
import { ExternalLinkButtons } from "src/components/Shared/ExternalLinksButton";
import { AliasList } from "src/components/Shared/DetailsPage/AliasList";
import { HeaderImage } from "src/components/Shared/DetailsPage/HeaderImage";
import { goBackOrReplace } from "src/utils/history";
interface IProps {
studio: GQL.StudioDataFragment;
@@ -378,7 +379,7 @@ const StudioPage: React.FC<IProps> = ({ studio, tabKey }) => {
return;
}
history.goBack();
goBackOrReplace(history, "/studios");
}
function renderDeleteAlert() {