From 9ca6b039a299cec59fb24a19d1d9882bbcb52ab8 Mon Sep 17 00:00:00 2001 From: er-pai-r <18335219360@163.com> Date: Mon, 4 Dec 2023 14:16:55 +0800 Subject: [PATCH] feat: update api name --- frontend/src/pages/sdoc/sdoc-file-history/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/pages/sdoc/sdoc-file-history/index.js b/frontend/src/pages/sdoc/sdoc-file-history/index.js index b2dc3d60f3..e3af64ac0a 100644 --- a/frontend/src/pages/sdoc/sdoc-file-history/index.js +++ b/frontend/src/pages/sdoc/sdoc-file-history/index.js @@ -55,7 +55,7 @@ class SdocFileHistory extends React.Component { }).then(res => { const currentVersionContent = res.data; if (isShowChanges) { - seafileAPI.getNextFileRevision(historyRepoID, currentVersion.id, currentVersion.path).then(res => { + seafileAPI.getLastFileRevision(historyRepoID, currentVersion.id, currentVersion.path).then(res => { return res.data ? seafileAPI.getFileContent(res.data) : { data: '' }; }).then(res => { const lastVersionContent = res.data;