1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-04 16:31:13 +00:00

fix no file history (#4483)

* fix no file history

* remove useless warning
This commit is contained in:
王健辉
2020-03-17 20:40:31 +08:00
committed by GitHub
parent 617e8f1ed6
commit cecdf31ae2
2 changed files with 2 additions and 1 deletions

View File

@@ -118,6 +118,8 @@ class FileHistory extends React.Component {
seafileAPI.listOldFileHistoryRecords(historyRepoID, filePath, this.state.nextCommit).then((res) => {
this.initOldRecords(res.data);
});
} else {
this.setState({isLoading: false});
}
}
}

View File

@@ -775,7 +775,6 @@ def file_revisions(request, repo_id):
if suffix_list and isinstance(suffix_list, list):
suffix_list = [x.lower() for x in suffix_list]
else:
logger.warning('Wrong type of suffix_list: %s' % repr(suffix_list))
suffix_list = []
use_new_api = True if file_ext in suffix_list else False