mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-05 00:43:53 +00:00
fix no file history (#4483)
* fix no file history * remove useless warning
This commit is contained in:
@@ -118,6 +118,8 @@ class FileHistory extends React.Component {
|
|||||||
seafileAPI.listOldFileHistoryRecords(historyRepoID, filePath, this.state.nextCommit).then((res) => {
|
seafileAPI.listOldFileHistoryRecords(historyRepoID, filePath, this.state.nextCommit).then((res) => {
|
||||||
this.initOldRecords(res.data);
|
this.initOldRecords(res.data);
|
||||||
});
|
});
|
||||||
|
} else {
|
||||||
|
this.setState({isLoading: false});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -775,7 +775,6 @@ def file_revisions(request, repo_id):
|
|||||||
if suffix_list and isinstance(suffix_list, list):
|
if suffix_list and isinstance(suffix_list, list):
|
||||||
suffix_list = [x.lower() for x in suffix_list]
|
suffix_list = [x.lower() for x in suffix_list]
|
||||||
else:
|
else:
|
||||||
logger.warning('Wrong type of suffix_list: %s' % repr(suffix_list))
|
|
||||||
suffix_list = []
|
suffix_list = []
|
||||||
|
|
||||||
use_new_api = True if file_ext in suffix_list else False
|
use_new_api = True if file_ext in suffix_list else False
|
||||||
|
Reference in New Issue
Block a user