summaryrefslogtreecommitdiffstats
path: root/client/components/rules/rulesMain.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2019-01-04 11:00:33 +0200
committerLauri Ojansivu <x@xet7.org>2019-01-04 11:00:33 +0200
commitf5339ef97fe1529c63504982c0273233a1521701 (patch)
treec5da5ef77dd07da774564cd9132466d0858510f3 /client/components/rules/rulesMain.js
parent2b53fae16f07c3614ee9e9d54cd17f8102218fea (diff)
downloadwekan-f5339ef97fe1529c63504982c0273233a1521701.tar.gz
wekan-f5339ef97fe1529c63504982c0273233a1521701.tar.bz2
wekan-f5339ef97fe1529c63504982c0273233a1521701.zip
- Fix lint errors.
Thanks to xet7 !
Diffstat (limited to 'client/components/rules/rulesMain.js')
-rw-r--r--client/components/rules/rulesMain.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/client/components/rules/rulesMain.js b/client/components/rules/rulesMain.js
index 2e125960..d4af38f4 100644
--- a/client/components/rules/rulesMain.js
+++ b/client/components/rules/rulesMain.js
@@ -1,4 +1,4 @@
-const rulesMainComponent = BlazeComponent.extendComponent({
+BlazeComponent.extendComponent({
onCreated() {
this.rulesCurrentTab = new ReactiveVar('rulesList');
this.ruleName = new ReactiveVar('');
@@ -11,7 +11,7 @@ const rulesMainComponent = BlazeComponent.extendComponent({
},
sanitizeObject(obj){
Object.keys(obj).forEach((key) => {
- if(obj[key] == '' || obj[key] == undefined){
+ if(obj[key] === '' || obj[key] === undefined){
obj[key] = '*';
}}
);
@@ -52,9 +52,9 @@ const rulesMainComponent = BlazeComponent.extendComponent({
const username = $(event.currentTarget.offsetParent).find('.user-name').val();
let trigger = this.triggerVar.get();
trigger.userId = '*';
- if(username != undefined ){
+ if(username !== undefined ){
const userFound = Users.findOne({username});
- if(userFound != undefined){
+ if(userFound !== undefined){
trigger.userId = userFound._id;
this.triggerVar.set(trigger);
}