cleanup debug code

This commit is contained in:
John R. Supplee 2021-01-17 21:43:56 +02:00
parent e70a1f0a60
commit b5124d0f6a
2 changed files with 2 additions and 6 deletions

View file

@ -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;

View file

@ -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;
}
}