mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-14 23:21:35 +00:00
Revert "fix(ui): project detail close replaces history to match the other detail pages"
This reverts commit dbf9392f24.
This commit is contained in:
parent
dbf9392f24
commit
34e42abed3
2 changed files with 1 additions and 7 deletions
|
|
@ -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();
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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 (
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue