Revert "fix(ui): project detail close replaces history to match the other detail pages"

This reverts commit dbf9392f24.
This commit is contained in:
ryan-crabbe-berri 2026-08-05 18:19:55 -07:00
parent dbf9392f24
commit 34e42abed3
2 changed files with 1 additions and 7 deletions

View file

@ -243,7 +243,6 @@ describe("ProjectsPage", () => {
await waitFor(() => {
expect(onUrlUpdate).toHaveBeenLastCalledWith(expect.objectContaining({ queryString: "" }));
});
expect(onUrlUpdate.mock.calls.at(-1)?.[0].options.history).toBe("replace");
expect(screen.queryByTestId("project-detail")).not.toBeInTheDocument();
expect(screen.getByText("Alpha Project")).toBeInTheDocument();
});

View file

@ -48,12 +48,7 @@ export function ProjectsPage() {
}, [projects, searchText, teamAliasMap]);
if (selectedProjectId) {
return (
<ProjectDetail
projectId={selectedProjectId}
onBack={() => void setSelectedProjectId(null, { history: "replace" })}
/>
);
return <ProjectDetail projectId={selectedProjectId} onBack={() => void setSelectedProjectId(null)} />;
}
return (