فهرست منبع

cleaned up diffs

Mao 4 سال پیش
والد
کامیت
e649d49c3b
2فایلهای تغییر یافته به همراه1 افزوده شده و 5 حذف شده
  1. 1 3
      packages/app/src/server/routes/search.js
  2. 0 2
      packages/ui/src/components/PagePath/PagePathLabel.jsx

+ 1 - 3
packages/app/src/server/routes/search.js

@@ -30,7 +30,6 @@ module.exports = function(crowi, app) {
   // var debug = require('debug')('growi:routes:search')
   const Page = crowi.model('Page');
   const User = crowi.model('User');
-  const Revision = crowi.model('Revision');
   const ApiResponse = require('../util/apiResponse');
   const ApiPaginate = require('../util/apiPaginate');
 
@@ -159,7 +158,7 @@ module.exports = function(crowi, app) {
       };
       const myXss = new xss.FilterXSS(options);
       // add tags snippet data/contentWithNoKeyword and mattched page name to result pages
-      findResult.pages.map(async(page) => {
+      findResult.pages.map((page) => {
         const elasticSearchResult = { snippet: '', matchedPath: '' };
         const data = esResult.data.find((data) => { return page.id === data._id });
         page._doc.tags = data._source.tag_names;
@@ -196,7 +195,6 @@ module.exports = function(crowi, app) {
     catch (err) {
       return res.json(ApiResponse.error(err));
     }
-    console.log(JSON.stringify(result));
     return res.json(ApiResponse.success(result));
   };
 

+ 0 - 2
packages/ui/src/components/PagePath/PagePathLabel.jsx

@@ -18,9 +18,7 @@ export const PagePathLabel = (props) => {
     ? <><strong>/</strong></>
     : <>{dPagePath.former}/<strong>{dPagePath.latter}</strong></>;
 
-
   return <span className={classNames.join(' ')}>{textElem}</span>;
-
 };
 
 PagePathLabel.propTypes = {