mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-11 20:01:10 +00:00
fix search when move dir to other repo (#6527)
This commit is contained in:
@@ -245,7 +245,7 @@ class FileChooser extends React.Component {
|
|||||||
if (isPro && enableSeasearch && !enableElasticsearch) {
|
if (isPro && enableSeasearch && !enableElasticsearch) {
|
||||||
seafileAPI.aiSearchFiles(queryData, cancelToken).then(res => {
|
seafileAPI.aiSearchFiles(queryData, cancelToken).then(res => {
|
||||||
this.setState({
|
this.setState({
|
||||||
searchResults: res.results.length > 0 ? this.formatResultItems(res.results.filter(item => item.is_dir)) : [],
|
searchResults: res.data.results.length > 0 ? this.formatResultItems(res.data.results.filter(item => item.is_dir)) : [],
|
||||||
isResultGot: true
|
isResultGot: true
|
||||||
});
|
});
|
||||||
this.source = null;
|
this.source = null;
|
||||||
|
Reference in New Issue
Block a user