mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Add some ESLint rules and fix some related issues
This commit is contained in:
parent
43de3b8a01
commit
944a1065d3
5 changed files with 46 additions and 42 deletions
|
|
@ -62,14 +62,12 @@ BlazeComponent.extendComponent({
|
|||
try {
|
||||
trelloCard = JSON.parse(jsonData);
|
||||
} catch (e) {
|
||||
console.log(e);
|
||||
this.setError('error-json-malformed');
|
||||
return;
|
||||
}
|
||||
Meteor.call('importTrelloCard', trelloCard, this.currentData()._id, sortIndex,
|
||||
(error, response) => {
|
||||
if (error) {
|
||||
console.log(error);
|
||||
this.setError(error.error);
|
||||
} else {
|
||||
Filter.addException(response);
|
||||
|
|
@ -77,8 +75,8 @@ BlazeComponent.extendComponent({
|
|||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
},];
|
||||
},
|
||||
}];
|
||||
},
|
||||
|
||||
onCreated() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue