From 715faf321f6d4473a188817d84e4274b857f2828 Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Fri, 20 Jan 2017 18:04:30 -0300 Subject: [PATCH] Wordlist is undefined --- graph/mutators.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/graph/mutators.js b/graph/mutators.js index 298a51404..69fdcd92e 100644 --- a/graph/mutators.js +++ b/graph/mutators.js @@ -1,5 +1,6 @@ -const errors = require('../errors'); +/* eslint eqeqeq: ["error", "smart"]*/ +const errors = require('../errors'); const Action = require('../models/action'); const Asset = require('../models/asset'); const Comment = require('../models/comment'); @@ -118,7 +119,9 @@ const createPublicComment = (context, commentInput) => { // If the comment was flagged as being suspect, we need to add a // flag to it to indicate that it needs to be looked at. // Otherwise just return the new comment. - if (wordlist !== null && wordlist.suspect) { + + // TODO: Check why the wordlist is undefined + if (wordlist != null) { // TODO: this is kind of fragile, we should refactor this to resolve // all these const's that we're using like 'comments', 'flag' to be