Forráskód Böngészése

cleanup debug code

John R. Supplee 4 éve
szülő
commit
b5124d0f6a
2 módosított fájl, 2 hozzáadás és 6 törlés
  1. 2 4
      client/components/main/globalSearch.js
  2. 0 2
      models/cards.js

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

@@ -49,8 +49,6 @@ BlazeComponent.extendComponent({
     this.queryErrors = null;
     Meteor.subscribe('setting');
     if (Session.get('globalQuery')) {
-      // eslint-disable-next-line no-console
-      // console.log(Session.get('globalQuery'));
       this.searchAllBoards(Session.get('globalQuery'));
     }
   },
@@ -68,12 +66,12 @@ BlazeComponent.extendComponent({
 
   results() {
     // eslint-disable-next-line no-console
-    console.log('getting results');
+    // console.log('getting results');
     if (this.queryParams) {
       const results = Cards.globalSearch(this.queryParams);
       this.queryErrors = results.errors;
       // eslint-disable-next-line no-console
-      console.log('errors:', this.queryErrors);
+      // console.log('errors:', this.queryErrors);
       if (this.errorMessages().length) {
         this.hasQueryErrors.set(true);
         return null;

+ 0 - 2
models/cards.js

@@ -1883,8 +1883,6 @@ Cards.globalSearch = queryParams => {
     hasErrors() {
       for (const prop in this.notFound) {
         if (this.notFound[prop].length) {
-          // eslint-disable-next-line no-console
-          console.log('errors in:', prop, this.notFound[prop]);
           return true;
         }
       }