From edc6d661d6bc6d94866f6ffba161fdec90e59f93 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Sun, 4 Jan 2015 20:27:48 +0200 Subject: actually commit links - but the ids are messed up, neo4j matches nothing and the creation fails silently --- src/client/textanalysis.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/client') diff --git a/src/client/textanalysis.js b/src/client/textanalysis.js index 56e0b602..a3e3eabd 100644 --- a/src/client/textanalysis.js +++ b/src/client/textanalysis.js @@ -425,8 +425,8 @@ var textAnalyser = function (newtext, finalize) { ret.link_set_add = ret.link_set_add .filter(function (link) { return !finalize || - (ret.drop_conjugator_links && - (link.name.replace(/ /g,"") === "and")); + !ret.drop_conjugator_links || + (link.name.replace(/ /g,"") !== "and"); }) .map(function (link) { link.__src = edit_graph.find_node__by_name(link.__src) || -- cgit v1.3.1