Shun Miyazawa 4 years ago
parent
commit
fbca7ad768
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/app/src/components/SearchForm.jsx

+ 2 - 2
packages/app/src/components/SearchForm.jsx

@@ -36,11 +36,11 @@ class SearchForm extends React.Component {
   }
 
   onChange(selected) {
-    const page = selected[0]; // should be single page selected
+    const page = selected[0];
 
     // navigate to page
     if (page != null) {
-      window.location = page.path;
+      window.location = page.pageData._id;
     }
   }