Răsfoiți Sursa

change branch on condition

yuto-o 4 ani în urmă
părinte
comite
a7cf00d137
1 a modificat fișierele cu 2 adăugiri și 5 ștergeri
  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}`;
     }