1
0
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:
Michael An
2024-08-11 19:35:53 +08:00
committed by GitHub
parent 28923c8d7b
commit 3ba991e3f7

View File

@@ -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;