From cb68f43ac09f9e5729e07045fb6708978747ff9d Mon Sep 17 00:00:00 2001 From: ilearnit Date: Wed, 10 Apr 2019 16:29:50 +0800 Subject: [PATCH] Update history-list.js --- frontend/src/pages/review/history-list.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/pages/review/history-list.js b/frontend/src/pages/review/history-list.js index eb147e33c6..b2f4daf8c1 100644 --- a/frontend/src/pages/review/history-list.js +++ b/frontend/src/pages/review/history-list.js @@ -4,7 +4,7 @@ import axios from 'axios'; import Loading from '../../components/loading'; import moment from 'moment'; import { seafileAPI } from '../../utils/seafile-api'; -import { draftOriginRepoID, draftFilePath, draftOriginFilePath } from '../../utils/constants'; +import { draftRepoID, draftFilePath, draftOriginFilePath } from '../../utils/constants'; import '../../css/file-history.css'; @@ -38,7 +38,7 @@ class HistoryList extends React.Component { currentPage: currentPage, loading : true }); - seafileAPI.listFileHistoryRecords(draftOriginRepoID, draftFilePath, currentPage, this.perPage).then((res) => { + seafileAPI.listFileHistoryRecords(draftRepoID, draftFilePath, currentPage, this.perPage).then((res) => { let currentHistoryList = Object.assign([], this.props.historyList); this.props.onHistoryListChange([...currentHistoryList, ...res.data.data]); this.setState({