Better match for culumn inside tagsColumn

This commit is contained in:
Adrian Lopez
2016-12-07 12:23:57 +01:00
parent 9fbb1214ae
commit 395b834a23
@@ -89,7 +89,7 @@ function (_, TableModel) {
if (column === 'sequence_number') { return; }
if (!titleCol) { titleCol = index; }
if (column === self.annotation.titleColumn) { titleCol = index; return; }
if (self.annotation.tagsColumn.includes(column)) { tagsCol.push(index); return; }
if (_.contains(tagsColumn.split(","), column)) { tagsCol.push(index); return; }
if (column === self.annotation.textColumn) { textCol = index; return; }
});