فهرست منبع

Move call to URL search to onRendered

John R. Supplee 4 سال پیش
والد
کامیت
c66a48e530
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      client/components/main/globalSearch.js

+ 2 - 2
client/components/main/globalSearch.js

@@ -77,7 +77,9 @@ BlazeComponent.extendComponent({
         this.myBoardNames.set(data);
       }
     });
+  },
 
+  onRendered() {
     Meteor.subscribe('setting');
     if (Session.get('globalQuery')) {
       this.searchAllBoards(Session.get('globalQuery'));
@@ -332,8 +334,6 @@ BlazeComponent.extendComponent({
       );
       Tracker.nonreactive(() => {
         Tracker.autorun(() => {
-          // eslint-disable-next-line no-console
-          // console.log('ready:', handle.ready());
           if (handle.ready()) {
             this.getResults();
             this.searching.set(false);