changeset 3:aea1b2097f4f

fix silly bug.
author casties
date Tue, 01 Sep 2015 17:05:31 +0200
parents 130beb4cabec
children 72dc19d750ad
files popoto/src/js/popoto.js
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/popoto/src/js/popoto.js	Tue Sep 01 17:01:01 2015 +0200
+++ b/popoto/src/js/popoto.js	Tue Sep 01 17:05:31 2015 +0200
@@ -3450,7 +3450,7 @@
         if (Array.isArray(nodeLabel)) {
             // use last label
             var label = nodeLabel[nodeLabel.length - 1];
-            if (label.indexOf('_') == -1 && nodeLabel.length > 1) {
+            if (label.indexOf('_') != -1 && nodeLabel.length > 1) {
                 // skip if wrong label
                 label = nodeLabel[nodeLabel.length - 2];
             }