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;