1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-18 08:16:07 +00:00

Update history-list.js

This commit is contained in:
ilearnit
2019-04-10 16:29:50 +08:00
committed by GitHub
parent d1f509e8fd
commit cb68f43ac0

View File

@@ -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({