yuto-o 4 лет назад
Родитель
Сommit
a7cf00d137
1 измененных файлов с 2 добавлено и 5 удалено
  1. 2 5
      packages/app/src/components/SearchPage.jsx

+ 2 - 5
packages/app/src/components/SearchPage.jsx

@@ -84,13 +84,10 @@ class SearchPage extends React.Component {
     let query = keyword;
 
     // pages included in specific path are not retrived when prefix is added
-    if (this.state.isNotIncludeTrashPath && this.state.isNotIncludeUserPath) {
-      query = `${query} -prefix:/${specificPathNames.trash}/${specificPathNames.user}`;
-    }
-    else if (this.state.isNotIncludeTrashPath) {
+    if (this.state.isNotIncludeTrashPath) {
       query = `${query} -prefix:/${specificPathNames.trash}`;
     }
-    else if (this.state.isNotIncludeUserPath) {
+    if (this.state.isNotIncludeUserPath) {
       query = `${query} -prefix:/${specificPathNames.user}`;
     }