Steven Fukase 4 years ago
parent
commit
fbd692c1ee
1 changed files with 4 additions and 0 deletions
  1. 4 0
      packages/app/src/server/service/slack-command-handler/search.js

+ 4 - 0
packages/app/src/server/service/slack-command-handler/search.js

@@ -35,6 +35,10 @@ module.exports = (crowi) => {
       pages, offset, resultsTotal,
       pages, offset, resultsTotal,
     } = searchResult;
     } = searchResult;
 
 
+    if (pages.length === 0) {
+      return;
+    }
+
     const keywords = this.getKeywords(args);
     const keywords = this.getKeywords(args);