Skip to content

Commit 64712f5

Browse files
committed
fix(navigation): fix navigation after game deletion
1 parent b4df397 commit 64712f5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/Toolbar/Toolbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ export const DeleteModal: React.FC<{ id: number }> = ({ id }) => {
293293
setIsDeleting(true);
294294
await deleteGameMutation.mutateAsync(id);
295295
setSelectedGameId(null);
296-
navigate("/libraries");
296+
navigate(-1);
297297
} catch (error) {
298298
console.error("删除游戏失败:", error);
299299
} finally {

0 commit comments

Comments
 (0)