From 057996811e0d9bce2320bf8319bdeac8b64e3828 Mon Sep 17 00:00:00 2001 From: calvin Date: Mon, 5 Jun 2023 15:53:32 -0600 Subject: [PATCH] feat: [code-288]: file commit history - p2 --- .../Repository/RepositoryContent/FileContent/FileContent.tsx | 2 +- .../RepositoryContent/FileContent/RenameContentHistory.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/pages/Repository/RepositoryContent/FileContent/FileContent.tsx b/web/src/pages/Repository/RepositoryContent/FileContent/FileContent.tsx index 339c74fb1..225b4d93b 100644 --- a/web/src/pages/Repository/RepositoryContent/FileContent/FileContent.tsx +++ b/web/src/pages/Repository/RepositoryContent/FileContent/FileContent.tsx @@ -110,7 +110,7 @@ export function FileContent({ const [page, setPage] = usePageIndex() const { data: commits, response } = useGet<{ commits: TypesCommit[]; rename_details: RenameDetails[] }>({ - path: `/api/v1/repos/${repoMetadata?.path}/+/commitsV2`, + path: `/api/v1/repos/${repoMetadata?.path}/+/commits`, queryParams: { limit: LIST_FETCHING_LIMIT, page, diff --git a/web/src/pages/Repository/RepositoryContent/FileContent/RenameContentHistory.tsx b/web/src/pages/Repository/RepositoryContent/FileContent/RenameContentHistory.tsx index d3a861f44..166b88aed 100644 --- a/web/src/pages/Repository/RepositoryContent/FileContent/RenameContentHistory.tsx +++ b/web/src/pages/Repository/RepositoryContent/FileContent/RenameContentHistory.tsx @@ -17,7 +17,7 @@ const RenameContentHistory = (props: { rename_details: RenameDetails[], repoMeta const [fileVisibility, setFileVisibility] = useState(initialFileVisibility || {}); const [page, setPage] = usePageIndex(); const { data: commits, response, refetch: getCommitHistory } = useGet<{ commits: TypesCommit[]; rename_details: RenameDetails[] }>({ - path: `/api/v1/repos/${repoMetadata?.path}/+/commitsV2`, + path: `/api/v1/repos/${repoMetadata?.path}/+/commits`, lazy: true });