mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
cleanup debug code
This commit is contained in:
parent
e70a1f0a60
commit
b5124d0f6a
2 changed files with 2 additions and 6 deletions
|
|
@ -49,8 +49,6 @@ BlazeComponent.extendComponent({
|
||||||
this.queryErrors = null;
|
this.queryErrors = null;
|
||||||
Meteor.subscribe('setting');
|
Meteor.subscribe('setting');
|
||||||
if (Session.get('globalQuery')) {
|
if (Session.get('globalQuery')) {
|
||||||
// eslint-disable-next-line no-console
|
|
||||||
// console.log(Session.get('globalQuery'));
|
|
||||||
this.searchAllBoards(Session.get('globalQuery'));
|
this.searchAllBoards(Session.get('globalQuery'));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -68,12 +66,12 @@ BlazeComponent.extendComponent({
|
||||||
|
|
||||||
results() {
|
results() {
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.log('getting results');
|
// console.log('getting results');
|
||||||
if (this.queryParams) {
|
if (this.queryParams) {
|
||||||
const results = Cards.globalSearch(this.queryParams);
|
const results = Cards.globalSearch(this.queryParams);
|
||||||
this.queryErrors = results.errors;
|
this.queryErrors = results.errors;
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
console.log('errors:', this.queryErrors);
|
// console.log('errors:', this.queryErrors);
|
||||||
if (this.errorMessages().length) {
|
if (this.errorMessages().length) {
|
||||||
this.hasQueryErrors.set(true);
|
this.hasQueryErrors.set(true);
|
||||||
return null;
|
return null;
|
||||||
|
|
|
||||||
|
|
@ -1883,8 +1883,6 @@ Cards.globalSearch = queryParams => {
|
||||||
hasErrors() {
|
hasErrors() {
|
||||||
for (const prop in this.notFound) {
|
for (const prop in this.notFound) {
|
||||||
if (this.notFound[prop].length) {
|
if (this.notFound[prop].length) {
|
||||||
// eslint-disable-next-line no-console
|
|
||||||
console.log('errors in:', prop, this.notFound[prop]);
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue